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
        else
                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.

Lei

Department of Chemsitry
University of Washington
Box 351700
Seattle, WA 98195
Phone: 206-616-6882
Fax: 206-685-8665

______________________________________________
[EMAIL PROTECTED] mailing list
http://www.stat.math.ethz.ch/mailman/listinfo/r-help

Reply via email to