Description Usage Arguments Details Value See Also
This is a riveting description that describes what your function does. This
is a link to hello
.
1 2 | grpSummary(input.data, instructions.data, factors.as.numeric = TRUE,
progress.bar = TRUE)
|
input.data |
A data frame on which to perform the summary. |
instructions.data |
A data frame. See 'Details'. |
factors.as.numeric |
TODO |
progress.bar |
logical. Whether to display a progress bar while calculations are being carried out. |
instructions.data is a dataframe with the following column names in the proper order: "column" "category" "consolidate" "exclude" "quantile" "use.function" Each row deals with a different variable on which to split the data and perform the summary statistics. Typically, this dataframe would be created by reading in a csv file. The information in each column must conform to these specifications:
* column: Must be the exact name of a column in the dataframe. This is the "target column" category: Must be either "TRUE" or "FALSE". Indicates whether the target column in the dataframe is a categorical variable or not.
* consolidate: A set of categories in the target column to consolidate. separated by colons, pipes, and semicolons like in the following: WEST:California|Oregon|Nevada;EAST:New York|Virginia
* exclude: Must be exact name(s) of categories in the target column that will be excluded when splitting the sample. Must be separated by semicolons, e.g. excluded.var.1;excluded.var.2;excluded.var.3
* quantile: For numeric target columns, specify the quantile cut points to split the sample by. Quantiles must be separated by semicolons, e.g. .25;.5;.75
* use.function: The name(s) of the R function(s) that will be applied to the data, separated by semicolons if more than one. Must be exactly as written in R. mean, sd, and median are known to work. Other functions are not guaranteed to work and may simply produce all NA's. na.rm=TRUE is automatically added as an argument to the function. Input example: mean;sd;median
* cohen.d: Must be either "TRUE" or "FALSE". Indicates whether to calculate Cohen's d.
Returns a matrix containing the results of the summary operations
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.