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
--
View this message in context:
Hi,
new.Match - Match[10Match$position Match$position50
Match$tvalues3.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
Assuming that your dataframe is DF and those are names of columns then
?subset
DF - data.frame(posit=runif(20, max=20), tvalues = runif(20, max=
10))
subset(DF, subset= posit 10 tvalues 3.5 )
posit tvalues
4 14.66464 9.527535
6 14.71280 7.231015
9 14.76594 7.626381
10
3 matches
Mail list logo