I have a great dataset like this: name ? ? ?colour ? ... ... ... jerry ? ? ? ? red pippo ? ? ? ?red tom ? ? ? ? ?red tom ? ? ? ?yellow tom ? ? ? ?green jessie ? ? orange jessie ? ? ?red bill ? ? ? ? ?yellow kate ? ? ? red henry ? ? ?green .. .. I want to find out, in this great dataset, if (the name of) a person is repeated (and which colour are associated).? My output has to be a dataset like this: name ? ? ?colour ? colour2 colour3 ... ... ... jerry ? ? ? ? red pippo ? ? ? ?red tom ? ? ? ? ?red yellow green jessie ? ? orange red bill ? ? ? ? ?yellow kate ? ? ? red henry ? ? ?green How to do? Is it possible to do with Calc? Thanks -- View this message in context: http://r.789695.n4.nabble.com/How-to-change-Record-repeated-tp4100939p4100939.html Sent from the R help mailing list archive at Nabble.com.
How to change Record "repeated"
2 messages · lunarossa, R. Michael Weylandt
I don't know what "Calc" is, but I think the duplicated() command will work for what you need. Michael
On Wed, Nov 23, 2011 at 1:37 PM, lunarossa <gloriaalbe1 at yahoo.it> wrote:
I have a great dataset like this: name ? ? ?colour ? ... ... ... jerry ? ? ? ? red pippo ? ? ? ?red tom ? ? ? ? ?red tom ? ? ? ?yellow tom ? ? ? ?green jessie ? ? orange jessie ? ? ?red bill ? ? ? ? ?yellow kate ? ? ? red henry ? ? ?green .. .. I want to find out, in this great dataset, if (the name of) a person is repeated (and which colour are associated). My output has to be a dataset like this: name ? ? ?colour ? colour2 colour3 ... ... ... jerry ? ? ? ? red pippo ? ? ? ?red tom ? ? ? ? ?red ? ? ? yellow green jessie ? ? orange ? ? red bill ? ? ? ? ?yellow kate ? ? ? red henry ? ? ?green How to do? Is it possible to do with Calc? Thanks -- View this message in context: http://r.789695.n4.nabble.com/How-to-change-Record-repeated-tp4100939p4100939.html Sent from the R help mailing list archive at Nabble.com.
______________________________________________ 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.