View source: R/variance_functions.R
describe | R Documentation |
describe
constructs a named vector that contains various descriptive statistics of numeric data.
describe(x, confidence = 0.05, digits = 2)
x |
Numeric vector. |
confidence |
confidence level (default of 0.05) for resulting confidence interval calculation. |
digits |
integer (defaults to 2) specifying the number of significant digits for the resulting descriptive statistics |
A numeric vector containig the following information:
sample size
mean
standard deviation
standard error of the mean
confidence interval width
relative standard error
root mean square deviation
mean absolute error
# Example data(BSB) describe(BSB$TL, digits = 4) # Example 2 with(BSB, aggregate(TL ~ Age, FUN = describe, digits = 4))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.