[R] subset dataframe based on rows
lj22 at u.washington.edu
Thu Jan 23 23:49:03 CET 2003
I want to subset the dataframe based on certain values in a row.
for each row in my dataframe
if ANY one value of a particular set of columns satisfies cond
append a logical value true at the end of the row
append a false at the end of the row
in the end I want to be able to subset the whole data based on the
appended true or false value.
I could literally code like this, but I think there must be a better way
to do this. Can someone give me a hint?? thanks.
Department of Chemsitry
University of Washington
Seattle, WA 98195
More information about the R-help