search for: firstthat

Displaying 2 results from an estimated 2 matches for "firstthat".

2001 Feb 20
1
"firstthat"?
I need a function that's probably already in R, but I can't find it. What I want is a "firstthat" function. This will look through a logical vector and return the index of the first TRUE. Typical use would be like this: x _ runif(100) x[firstthat(x > 0.8)] to find the first value in x that exceeds 0.8. If there are none, it would give a zero length answer, or an NA, either would...
2005 Aug 16
2
data manipulation help
Hellow everybody, I have a dataframe with 468 individuals (rows) that I captured at least once during 28 visits (columns), it looks like: mortality[1:10,] X18.10.2004 X20.10.2004 X22.10.2004 X24.10.2004 X26.10.2004 X28.10.2004 X30.10.2004 X01.11.2004 X03.11.2004 X07.11.2004 1 1 0 0 0 1 1 1 0 0