num2stat: Summarize numeric vector to statistical summary
Description
Summarize numeric vector to statistical summary
Usage
num2stat(x, digits = 1, method = 1, p = NULL)
Value
A character vector of length 1
Arguments
x
A numeric vector
digits
integer indicating the number of decimal places
method
An integer indicating methods for continuous variables. Possible values in methods are
1 forces analysis as normal-distributed
2 forces analysis as continuous non-normal
3 performs a Shapiro-Wilk test or nortest::ad.test to decide between normal or non-normal
Default value is 1.