Description Usage Arguments Examples
Obtains the sd and mean grouping by column. Will return a df with the mean and sd by group of the chosen variable. from: STHDA barplot tutorial
1 | data_summary(data, varname, groupnames)
|
data |
dataframe with data to summarize |
varname |
column name for the variable which we want to summarize |
groupnames |
grouping variables |
1 2 | results_list <- data_summary(ToothGrowth, varname="len", groupnames=c("supp", "dose"))
summarized_data <- data_summary(all_data, varname = "meta2d_AMP", groupnames = "amp")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.