[R] $ operator is invalid for atomic vectors
Milan Bouchet-Valat
nalimilan at club.fr
Thu Apr 19 11:54:26 CEST 2012
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
More information about the R-help
mailing list