An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20120419/e4fd1457/attachment.pl>
$ operator is invalid for atomic vectors
2 messages · Ana-Maria Dobre, Milan Bouchet-Valat
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