Skip to contents

Print data summary for numeric variables using gtsummary

Usage

data_summary(data, variables = NULL, by = NULL, add.pval = T)

Arguments

data

data frame with numeric variables

variables

character vector of numeric variable names to include in the summary

by

character vector of variable names to group by

add.pval

logical, if TRUE, add p-values to the summary table

Value

a gtsummary object

Author

Charlotte Brault