[R] effective matrix subset

jgarcia at ija.csic.es jgarcia at ija.csic.es
Sat Aug 9 13:01:53 CEST 2008


Hi;
If we have a matrix A, and a vector X, where length(X)=nrow(A), and X
contains a wanted column for each row in A, in row ascending order. How
would be the most effective way to extract the desired vector V (with
length(V)=nrow(A))?

Wishes,
Javier



More information about the R-help mailing list