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
______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.