[R] automatic levels

Moritz Lennert mlennert at ulb.ac.be
Fri Apr 6 14:54:48 CEST 2001


Hello,

I've imported a csv, semi-colon spearated file with read.csv2,
containing one column of rownames and one column of floating point
numbers. When I look at the column of data with framename$columnname, I
get the values of the column plus level values. Are these level values
created automatically ?
The problem is when I try to calcluate the correlation coefficient
between this set of data and another with lm(x~y), the result indicates
that each level seems to have been used as independent variable, making
my results unusable.

How can I suppress the automatic creation of these levels ? Or how can I
model with lm() without the levels interfering ?
I've been trying to find the response in some of the manuals, but
haven't been able to, so if someone could just point me to the right
place...

Thank you !

P.S. I'm not subscribed to the list so I would aprreciate cc's to my
address.


-- 
Moritz Lennert
Chargé de recherche
IGEAT - ULB

tél: 32-2-650.65.16
fax: 32-2-650.50.92
email: mlennert at ulb.ac.be
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list