Skip to content
Prev 308483 / 398506 Next

Newly installed version; can't run lm function

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 this when you attached test.
Heed the warning!

As others have advised you ***don't use attach()***!!!

Instead, use "data= ..." in your call to lm().

     cheers,

         Rolf Turner
On 20/10/12 10:26, Michael Grant wrote: