get_mean_sd: Title Get mean and SD for a particular variable. By group.

View source: R/funcs.R

get_mean_sdR Documentation

Title Get mean and SD for a particular variable. By group.

Description

Does a one-way ANOVA test (t-test if only 2 groups) if there the output dataframe had a p value column.

Usage

get_mean_sd(data, strata, variable, name, output, round = 2)

Arguments

data

tibble containing data. Can't be a grouped tibble

strata

variable to stratify output by. Needs to be a factor to force to ordering to work.

variable

name of variable to be summarised

name

string name to put in the row.

output

The dataframe to append the requested summary to

round

The number of decimal places to round results to.


aasiyahrashan/TableOneDataframe documentation built on Dec. 9, 2024, 4:33 p.m.