var_summary: Prints a summary of the variable.

Description Usage Arguments Value

View source: R/var_summary.R

Description

Prints a summary of the variable.

Usage

1
var_summary(variable, na.rm = TRUE, verbose = FALSE)

Arguments

variable

character. The variable to summarize.

na.rm

logical. True to not return NAs (default), false to return NAs.

verbose

logical. Return even more data about the variable, false to not (default)

Value

the class and size of the variable. The mean, median, min, max, and SD of the variable if it is numeric. A table, head, and tail of the variable if it is not numeric.


peterhurford/surveytools2 documentation built on Feb. 18, 2021, 9:13 p.m.