Learn R Programming

GimmeMyStats (version 1.0.0)

summary_numeric: Summarizes descriptive statistics for numeric variables

Description

Formats the output of print_numeric into a concise summary.

Usage

summary_numeric(x, ...)

Value

A tibble with one row per numeric variable and the following columns:

Variables

Character specifying the variable name.

Median+/-IQR

Character specifying the median and interquartile range.

Arguments

x

Data frame, matrix, or vector containing numerical variables.

...

Additional arguments passed to print_numeric.

Examples

Run this code
x <- data.frame(A = rnorm(100), B = rnorm(100))
summary_numeric(x)
summary_numeric(x, digits = 2, width = 5)

Run the code above in your browser using DataLab