colSubtract | R Documentation |
Subtract a vector (length = nr. columns) column by column from each value of the matrix.
colSubtract(mat = xx, vec = 5:1)
mat |
Numeric input matrix. |
vec |
Vector to subtract. Length = nr. columns. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.