Re: [R] Newly installed version; can't run lm function

2012-10-19 Thread Rolf Turner
You have an object named "ozone" kicking around in your workspace/global environment. This is apparently not of mode "numeric" and it is masking the "ozone" object (column) from the attached data frame "test". Simply doing ls() would have told you this. Presumably you also got a warning about

Re: [R] Newly installed version; can't run lm function

2012-10-19 Thread David Winsemius
On Oct 19, 2012, at 2:26 PM, Michael Grant wrote: > New installation seems to have behavior I cannot figure out. Here is > illustrative sequence where I load a small data set (test) from Crawley's > files and try to run a simple linear model and get an error message. Oddly, > R reports that

Re: [R] Newly installed version; can't run lm function

2012-10-19 Thread Jorge I Velez
Hi Michael, Try fit <- lm(ozone~garden, data = test) summary(fit) See ?lm for more details. HTH, Jorge.- On Sat, Oct 20, 2012 at 8:26 AM, Michael Grant <> wrote: > New installation seems to have behavior I cannot figure out. Here is > illustrative sequence where I load a small data set (tes

[R] Newly installed version; can't run lm function

2012-10-19 Thread Michael Grant
New installation seems to have behavior I cannot figure out. Here is illustrative sequence where I load a small data set (test) from Crawley's files and try to run a simple linear model and get an error message. Oddly, R reports that the variable 'test$ozone' is numeric while, after attaching