Skip to contents

Descriptive statistics for a set of variables

Usage

summary_statistics_table(
  data,
  variables = NULL,
  stats = c("n", "mean", "sd", "median", "min", "max", "missing"),
  digits = 2L,
  output_format = "dataframe",
  title = "Summary Statistics"
)

Arguments

data

Data frame.

variables

Variable names (auto-detect numeric if NULL).

stats

Vector of statistic names.

digits

Decimal places.

output_format

Output target.

title

Title.