[R] problem with read.table

x to_rent_2000 at yahoo.com
Wed Apr 15 22:53:36 CEST 2009


Hi all,

I've simple code to read a file (verify.txt in the same directory as the script file) but when I run this I get 
"Error in eval(expr, envir, enclos) : object "y" not found".

data_model.df = read.table("./verify.txt", header=TRUE, nrows=10);
f <- lm(y ~ x)

Could someone pls tell me what's wrong with this code?

Sincere thanks!




More information about the R-help mailing list