lancet_mean_sd {tangram} | R Documentation |
Create a mean/sd cell object of the given data in Lancet style
Description
Create a mean/sd cell object of the given data in Lancet style.
Usage
lancet_mean_sd(
x,
format = NA,
na.rm = TRUE,
names = FALSE,
type = 8,
msd = FALSE,
quant = c(0.25, 0.5, 0.75),
...
)
Arguments
x |
numeric vector whose sample quantiles are wanted. NA and NaN values are not allowed in numeric vectors unless na.rm is TRUE. |
format |
numeric or character; Significant digits or fmt to pass to sprintf |
na.rm |
logical; if true, any NA and NaN's are removed from x before the quantiles are computed. |
names |
logical; ignored. For compatibility with hmisc_iqr |
type |
integer; ignored. For compatibility with hmisc_iqr |
msd |
logical; ignored. For compatibility with hmisc_iqr |
quant |
numeric; ignored. For compatibility with hmisc_iqr |
... |
additional arguments to constructing cell |
Value
A cell object.
Examples
require(stats)
lancet_mean_sd(rnorm(100), '3')
[Package tangram version 0.8.2 Index]