Re: [R] ) Error in eval(expr, envir, enclos) : object '' not found

From: David Winsemius <dwinsemius_at_comcast.net>
Date: Wed, 23 Mar 2011 10:19:17 -0400

On Mar 23, 2011, at 9:31 AM, mipplor wrote:

>> datafilename="E:/my documents/r/sex/bysex1.csv"
>> data.sex=read.table(datafilename,header=T)
>> data.sex

> y.sex.age.region.c.n
> 1 1980,F,A,N,-18.15,13.61
> 2 1980,F,A,N,-18.61,13.04
> 3 1980,F,A,N,-18.81,12.32
> 4 1990,F,A,N,-21.12,11.7
> 5 1990,F,A,N,-20.77,11.58
> 6 1990,F,A,N,-21.6,13.34
> 7 1990,F,A,N,-21.78,12.6
>
>> model.anova<-aov(c~age*sex,data=data.sex)

> Error in eval(expr, envir, enclos) : object 'age' not found
>
>
> i just wanna do a anova test. but the error message is as above,,,
> what should i do to shoot this problem ? Should i define the age?

You should read the help page for read.table more thoroughly with particular attention to the `sep` argument. At the moment you have one column in your data.frame.

-- 

David Winsemius, MD
West Hartford, CT

______________________________________________
R-help_at_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.
Received on Wed 23 Mar 2011 - 14:21:34 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 23 Mar 2011 - 14:30:23 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive