Displaying 1 result from an estimated 1 matches for "vectorfind".
2010 Nov 25
4
how to find a row index in a matrix or a data frame ?
...th row in x, that is, the expression
all(x[i,]==as.list(r))
evaluates to TRUE. I can not evaluate an expression like
x[x[,1]==2 & x[,2]==5,]
because I do not know in advance how many columns x will have.
Basically, thus, I'm looking for an equivalent of "vectorfind" in
Scilab.
(B) Which would be the most appropriate data type for x, matrix or
data frame or another type?
(C) What will be better, searching for rows or searching for columns?
Thank you for your help!
Best, Mirko