[R] selecting parts of a table
Stephan Kolassa
Stephan.Kolassa at gmx.de
Wed Jan 14 20:47:41 CET 2009
Hi,
new.Match <- Match[10<Match$position & Match$position<50 &
Match$tvalues>3.5,]
Everything before the comma selects rows. You could select columns by
using conditions after the comma.
HTH,
Stephan
emj83 schrieb:
> I have a dataframe called Match with two columns: position and tvalue.
>
> I would like to select the parts of the dataframe that have a position> 10
> but <50 and tvalues >3.5 as a new stand alone dataframe.
>
> Could anyone help me with how to do this?
>
> Thanks Emma
More information about the R-help
mailing list