View source: R/variable_summaries.R
summarize_variable | R Documentation |
Compute summary statistics, such as the mean or median, for a variable, potentially within various groups.
summarize_variable(data, formula, ..., .args = list())
summarise_variable(data, formula, ..., .args = list())
data |
a data frame containing the variables appearing in
|
formula |
an object of class " |
... |
a comma separated list of functions, each of which computes a statistic of interest. |
.args |
a named list of additional arguments to be added to all function calls. |
data.frame containing the values of interest
summarize_variable(mpg ~ am, data = mtcars, mean, median)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.