Williams, Robin <robin.williams <at> metoffice.gov.uk> writes:

> 
> Hi all,
>   I am very confused with class.
>   I am looking at some weather data which I want to use as explanatory
> variables in an lm. R has treated these variables as factors (i.e. with
> different levels), whereas I want them treated as discretely measured
> continuous variables.
 

The short answer to your problem can be found in the documentation for factor, 
particularly in the "Warning" section.

?factor

Mark

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to