Hello!
I'm looking for an easy way to filter data frames.
Some rows in my data frame needs to be left out,
for instance, rows with invalid data.
Right now, if I want to pair two columns of this data frame,
I have to do this:
pairs(as.data.frame(list(tstart=df$tstart[valid],tend=df$tend.sdr[valid])))
pairs(cbind(df$tstart,df$tend)[valid,],labels=c("tstart","tend"))
where 'valid' is a logical vector of valid rows.
Is there a way to filter a data frame without making a vector of
the columns, thus losing the column names?
Okay, perhaps I'm greedy. It's already working, what am I complaining
about?