jjcsformat_range_fct {junco}R Documentation

Function factory for range with censoring information formatting

Description

A function factory to generate formatting functions for range formatting that includes information about the censoring of survival times.

Usage

jjcsformat_range_fct(str)

Arguments

str

string
the format specifying the number of digits to be used, for the range values, e.g. "xx.xx".

Value

A function that formats a numeric vector with 4 elements:

See Also

Other JJCS formats: count_fraction, format_xx_fct(), jjcsformat_pval_fct()

Examples

my_range_format <- jjcsformat_range_fct("xx.xx")
my_range_format(c(0.35235, 99.2342, 1, 0))
my_range_format(c(0.35235, 99.2342, 0, 1))
my_range_format(c(0.35235, 99.2342, 0, 0))
my_range_format(c(0.35235, 99.2342, 1, 1))

[Package junco version 0.1.1 Index]