intr: Interval formatter

Description Usage Arguments Examples

Description

Calculate summary statistic with range or confidence interval.

Usage

1
intr(..., fun = median, conf = NULL, digits = 0, na.rm = FALSE)

Arguments

...

numeric vector or string of numeric vectors

fun

summary stat function, usually mean or median

conf

width of confidence interval in [0,1]; if NULL (default), returns min and max of ...

digits

number of digits (includes trailing 0s)

na.rm

logical; if TRUE, any NA and NaN are removed from ... before fun and quantile are computed

Examples

1
2
intr(1:10)
intr(1:10, conf = .95)

raredd/trainr documentation built on May 27, 2019, 2:03 a.m.