if output_type = "vector", the output will be a
named numeric vector of descriptive statistics;
if output_type = "dt", the output will be data.table of
descriptive statistics.
Arguments
vector
a numeric vector
output_type
if output_type = "vector", return a vector
of descriptive statistics; if output_type = "dt", return a
data.table of descriptive statistics (default = "vector")
sigfigs
number of significant digits to round to (default = 3)
ci
logical. Should 95% CI be included in the descriptive stats?
(default = TRUE)
pi
logical. Should 95% PI be included in the descriptive stats?
(default = TRUE)
notify_na_count
if TRUE, notify how many observations
were removed due to missing values. By default, NA count will be printed
only if there are any NA values.