summarize | R Documentation |
Summarize numeric variables
summarize(
x,
varname,
group_by = NULL,
type = c("all", "median-range", "mean-sd"),
na.rm = TRUE
)
x |
data.frame or data.table (will be coerced to data.table) |
varname |
Character, vector: Variable name(s) to summarize. Must be column names in |
group_by |
Character, vector: Variable name(s) of factors to group by. Must be column names
in |
type |
Character: "all", "median-range" or "mean-sd". Default = "all", which returns Mean, SD, Median, Range, NA (number of NA values) |
na.rm |
Logical: Passed to |
data.table
with summary
E.D. Gennatas
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.