powered by
group_summarize performs descriptive statistics for each group in a data set.
The function takes as input a data.frame or tibble, the column names of grouping variables, and the column names of variables of interest.
group_summarize(x, group_cols, var_cols, output_format = "v1", ...)
A data.frame or tibble.
Vector of the names of the grouping columns.
Vector of the names of the variables of interest.
The version of the output format (v0 or v1).
Extra arguments passed to fxn, i.e. na.rm = FALSE, etc.
A tibble
A group_summary object with slots for the results, grouping variables, variables of interest, and any other parameters passed in.
# NOT RUN { group_summarize(iris, "Species", c("Sepal.Length", "Sepal.Width")) # }
Run the code above in your browser using DataLab