[R] Advanced Filtering problem

2008-06-19 Thread T.D.Rudolph
http://www.nabble.com/file/p18018170/subdata.csv subdata.csv I've attached 100 rows of a data frame I am working with. I have one factor, id, with 27 levels. There are two columns of reference data, x and y (UTM coordinates), one column date in POSIXct format, and one column diff in times

Re: [R] Advanced Filtering problem

2008-06-19 Thread milton ruser
Hi Tyler, I donĀ“t know if I understood well. Try this. Case not work I try again and again :-) df-read.csv(http://www.nabble.com/file/p18018170/subdata.csv;) df.min.diff-aggregate(df[diff], df[c(day)], min) df.subset-subset(df, paste(df$day, df$diff) %in% paste(df.min.diff$day,

Re: [R] Advanced Filtering problem

2008-06-19 Thread hadley wickham
Hi Tyler, I've attached 100 rows of a data frame I am working with. I have one factor, id, with 27 levels. There are two columns of reference data, x and y (UTM coordinates), one column date in POSIXct format, and one column diff in times format (chron package). What I am trying to do is