search for: rowfind

Displaying 1 result from an estimated 1 matches for "rowfind".

Did you mean: rowbind
2010 Nov 25
4
how to find a row index in a matrix or a data frame ?
Dear all, this looks pretty much a standard problem, but I couldn't find a satisfying and understandable solution. (A) Given a data frame (or matrix), e.g. x <- data.frame(A=c(1, 2, 2), B=c(4, 5, 5)) and a row of this data frame, e.g. r <- c(2, 5) I need to find one row index i (or all such indices) such that r is at the i-th row in x, that is, the