Description Usage Arguments Details
From a matrix and a vector, return a vector where the ith element is the matrix element (i, v[i])
1 | column_picker(M, v)
|
M |
The n by m matrix |
v |
The length-n vector taking integer values 1 to m |
Faster version of M[cbind(1:length(v), v)]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.