[R] dataframe: how to select an element from a row
ikuzar
razuki at hotmail.fr
Fri Jan 20 11:45:47 CET 2012
This works but I do not know if there is a better way
tmp = df[df$myvalue<2000,]
ind = match(tmp$myvalue, df$myvalue)
res = df$DateTime[ind]
solution = list(ind[1], res[1])
--
View this message in context: http://r.789695.n4.nabble.com/dataframe-how-to-select-an-element-from-a-row-tp4311881p4312890.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list