ReCombine | R Documentation |
Combine matrix columns.
ReCombine(M, f = NULL)
M |
numeric matrix. |
f |
function. |
ReCombine
returns a numeric matrix
.
M <- matrix(1:40, 10, 4, dimnames = list(NULL, c("x", "x", "y", "y")))
ReCombine(M, f = c(x = "mean"))
ReCombine(M, f = c(y = "mean"))
ReCombine(M, f = list(x = "mean", y = mean))
ReCombine(M, f = list(x = mean, y = "mean"))
ReCombine(M, f = c(x = "merge"))
ReCombine(M, f = c(y = "merge"))
ReCombine(M, f = list(x = "merge", y = "merge"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.