[R] dataframe: how to select an element from a row
ikuzar
razuki at hotmail.fr
Fri Jan 20 11:22:40 CET 2012
Thank you Jorge and Florent for your responses.
Now, I 'd like to get the date *(and its index) *where myvalue < 2000 for
the first time.
I expect for a result like (index, date) = (3, 2012-01-07 )
This way does not work:
ind = match(df$myvalue <2000, df$myvalue)
res = df$DateTime[ind]
--
View this message in context: http://r.789695.n4.nabble.com/dataframe-how-to-select-an-element-from-a-row-tp4311881p4312847.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list