View source: R/summariseCols.R
summariseCols | R Documentation |
Parses a matrix of object/summary instructions, and applies the specified function to the object. The object(s) named in colfun must exist in a parent frame.
summariseCols(colfun, nfr = 3L)
colfun |
a character matrix with two columns. The first should be a function name, the second a column in data. |
nfr |
single positive integer number of frames up to look for named variables (default 3) |
data frame with column names constructed from colfun
A <- split(1:10, rep(1, each = 10))
dataCols <- matrix(c("A", "mean",
"A", "median",
"A", "var"), ncol = 2, byrow = TRUE)
GENEAclassify:::summariseCols(colfun = dataCols)
A <- split(1:10, rep(1:2, each = 5))
GENEAclassify:::summariseCols(colfun = dataCols)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.