Learn R Programming

crosstable (version 0.8.0)

cross_summary: Summarize a numeric vector

Description

Summarize a numeric vector with min, max, mean, sd, median, IQR, n and missings.

Usage

cross_summary(x, dig = 1, ...)

Value

a list of named functions

Arguments

x

a numeric vector

dig

number of digits

...

params to pass on to format_fixed(): zero_digits and only_round

Author

Dan Chaltiel, David Hajage

Examples

Run this code
cross_summary(iris$Sepal.Length)
cross_summary(iris$Petal.Width, dig=3)
cross_summary(mtcars2$hp_date)
cross_summary(mtcars2$qsec_posix, date_format="%d/%m %H:%M")

Run the code above in your browser using DataLab