[R] as.data.frame.array

2007-11-14 Thread Wollkind, Steven
I've noticed what seems like inconsistent behavior from this function, but I can't figure out if this is intentional or not. If an array has only one element, the names attached to that array are not transferred to the data frame that is returned, while If the array has two or more elements the na

Re: [R] Can I replace NA by 0 (if yes, how) ?

2007-11-07 Thread Wollkind, Steven
You don't need to loop. You can just do pfit$coefficients[is.na(pfit$coefficients)] <- 0 Steve Wollkind Associate Analyst Geode Capital Management, LLC 1 Post Office Square / 28th Floor / Boston, MA 02109 [EMAIL PROTECTED] Tel: (617) 392-8991 Fax: (617) 476-6389 This e-mail, and any attac

Re: [R] Graphics devices: windows() and x11() vs default

2007-11-07 Thread Wollkind, Steven
ng of this e-mail is strictly prohibited. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Martin Maechler Sent: Wednesday, November 07, 2007 10:24 AM To: Wollkind, Steven Cc: r-help@r-project.org Subject: Re: [R] Graphics devices: windows() and x11() v

[R] Graphics devices: windows() and x11() vs default

2007-11-07 Thread Wollkind, Steven
I'm noticing some differences between making an explicit call to windows() to generate a graphics device and going with whatever R gives you when you just start plotting, which raises the question of just what the nature of the default device is. I've had a hard time researching this so far, so I'