[R] Newbie question about read.table

Steve Miller steve.miller at jhu.edu
Thu May 11 19:51:25 CEST 2006


Are you prefixing the variable names with the data.frame name, i.e.
mydf$col2, or referencing by index mydf[,2]?

Steve Miller

-----Original Message-----
From: r-help-bounces at stat.math.ethz.ch
[mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of David Kaplan
Sent: Thursday, May 11, 2006 12:39 PM
To: r-help at stat.math.ethz.ch
Subject: [R] Newbie question about read.table

Hi

When I use the read.table function with header = T, I notice that it gives
me the variable names along the top as I expect.  But, when I then attempt
an analysis, e.g. regression, it doesn't recognize the variable names.  Am I
missing a step.  

Thank you

David


	[[alternative HTML version deleted]]

______________________________________________
R-help at stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide!
http://www.R-project.org/posting-guide.html




More information about the R-help mailing list