summary2 | R Documentation |
Wrapper for the base function summary() but adds standard deviation, standard error, and an 'N' and missing 'NA' count that are consistent.
summary2(x, digits = NULL, neaten.names = TRUE)
x |
vector of numeric data |
digits |
number of digits to round resulting values to |
neaten.names |
logical, TRUE removes period and space from names of the results returned by summary() to make the names better for use in a data.frame. |
array of descriptive statistics for x
Nicholas Cooper njcooper@gmx.co.uk
x <- 1:100 summary2(x, digits=2) summary2(c(x, NA, NA), digits=2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.