Le jeudi 19 avril 2012 à 09:34 +0300, Ana-Maria Dobre a écrit :
> I have got the following statement:
> 
> *> overview.domains$sample.var <- aggregate(migr$amigo.migr,
> by=list(siruta=amigo$siruta), var)[,-1]/overview.domains$n.i.*
> *Error in migr$amigo.migr : $ operator is invalid for atomic vectors*
> 
> 
> What should i do to solve this error?
Well, the error says it all: migr is a not a list, so you cannot use $
on it. The object is probably not what you think it is.


Hope this helps

______________________________________________
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