sum_2d_scale | R Documentation |
For a 2d matrix M with dimension n*k, sum over dimension 2 with scale c, at entries selected by index in dimension 1
sum_2d_scale(M, v, index = NULL)
M |
A 2d matrix with dimension n*k |
index |
a subset of {1,2,...,n} |
c |
A vector of length n |
A k*1 matrix
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.