descriptives: Compute descriptive statistics for a variable in the...

View source: R/descriptives.R

descriptivesR Documentation

Compute descriptive statistics for a variable in the metabolic data set

Description

Compute descriptive statistics for a variable in the metabolic data set

Usage

descriptives(dataset, variable, group = NULL)

Arguments

dataset

the dataset to analyze

variable

character scalar giving the variable name to summarize

group

character scalar giving an optional grouping variable for the summary

Value

a data frame of formatted summary statistics

Examples

data(ex_data, package = "PAutilities")
ex_data$group_var <- rep(
 c("One", "Two", "Three"),
 each = ceiling(nrow(ex_data)/3)
)[seq(nrow(ex_data))]
descriptives(ex_data, "Axis1", "group_var")


paulhibbing/PAutilities documentation built on July 5, 2025, 1:33 a.m.