View source: R/computeFunctionByFactors.R
computeFunctionByFactors | R Documentation |
Function to compute results from an arbitrary function (fcn) on colunms in a dataframe, by a set of factor levels
computeFunctionByFactors(
df,
fcn = "sum",
factors = NULL,
vars = NULL,
sortBy = NULL,
ascending = TRUE,
debug = FALSE
)
df |
|
fcn |
|
factors |
|
vars |
|
sortBy |
|
ascending |
|
debug |
|
dataframe of results with columns corresponding to factors and vars
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.