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? Thank you. Kind regards, Ana Maria Dobre [[alternative HTML version deleted]]
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