Re: [R] identifying cells in data frames with the same value

2011-09-23 Thread stevesp101
Thanks very much to both of you. Duplicated does exactly what I'm looking for. Sorry -- I didn't realize that I was supposed to provide a subset of my data frame. A little late now, but here it is -- the data frame is called SubInfo, and it gives background informations on subjects from a survey

Re: [R] identifying cells in data frames with the same value

2011-09-23 Thread Jean V Adams
As Jim suggested, the duplicated() function should help. If I understand what you're after, you could try something like this. I assumed that the name of your data frame was "df". selrows <- df$WorkerID %in% df$WorkerID[duplicated(df$WorkerID)] # SubjectNumbers with duplicate WorkerIDs df$Subj

Re: [R] identifying cells in data frames with the same value

2011-09-21 Thread jim holtman
?duplicated Hard to give a specific solution unless you follow the posting guide and provide a subset of the data to test on. On Wed, Sep 21, 2011 at 7:31 PM, stevesp101 wrote: > Hi, > > I'm trying to find out if there is a command that tells me which cells in my > data frame have the same value