str_comb_Intv: Create center with spread data summary for table

Description Usage Arguments Value Examples

View source: R/str_comb_intv.R

Description

Create center with spread data summary for table

Usage

1
2
str_comb_Intv(x, fun = median, digits = 2, delim = ",",
  limits = c(0.25, 0.75))

Arguments

x

Numeric Vector

fun

Function for Central Measure (Defaults to median)

digits

number of digits to round

delim

delimiter of choice

limits

numeric vector of length 2 for lower and upper limit, defaults to IQR

Value

Character String of the form fun(x) <delim> (Q1,Q3)

Examples

1
2
3
4
5
x = seq(1,100)
str_comb_Intv(x,digits = 3)
str_comb_Intv(x, lower = 0.1, upper = 0.85)
str_comb_Intv(x^2,fun = median, delim = " - ")
str_comb_Intv(x^2,fun = mean, delim = "_")

Ajfrick/AVRCHelp documentation built on Dec. 13, 2018, 6:21 p.m.