describe | R Documentation |
Describe a variable depending on normality
describe(x, digits = 2, probs = c(0.25, 0.75), alpha = 0.05, na.rm = TRUE)
x |
variable to be described. |
digits |
decimal digits in the result. |
probs |
quantiles to be used in case of non normality. |
alpha |
significance level for testing normality (0.05 by default). |
na.rm |
Should missing values be considered?. If TRUE and there are missing values present, the funcion returns NA. |
Mean ± sd of variable if normal or Median and Interquartile range if not normal.
describe(rnorm(100))
describe(runif(100))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.