Re: [R] Subsetting subsets of data.frames

2010-06-07 Thread jim holtman
subset(x, !duplicated(paste(x$id, x$date)) On Mon, Jun 7, 2010 at 3:01 AM, Jeff08 wrote: > > Hey Everyone, > > I have been stumped by this all day. > > Basically, I have a data.frame of multiple columns. Of concern are "id" & > "date" > > For some reason, oftentimes there are duplicates of data w

Re: [R] Subsetting subsets of data.frames

2010-06-07 Thread Uwe Ligges
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Uwe Ligges On 07.06.2010 09:01, Jeff08 wrote: Hey Everyone, I have been stumped by this all day. Basically, I have a data.frame of multiple columns.

[R] Subsetting subsets of data.frames

2010-06-07 Thread Jeff08
Hey Everyone, I have been stumped by this all day. Basically, I have a data.frame of multiple columns. Of concern are "id" & "date" For some reason, oftentimes there are duplicates of data with the same date. I would like to remove the duplicates per different id (removing duplicate dates for