num2stat | R Documentation |
Summarize numeric vector to statistical summary
num2stat(x, digits = 1, method = 1, p = NULL)
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. |
p |
A numeric |
A character vector of length 1
library(moonBook)
num2stat(acs$age)
num2stat(acs$age,method=2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.