powered by
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)
array of descriptive statistics for x
vector of numeric data
number of digits to round resulting values to
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.
Nicholas Cooper njcooper@gmx.co.uk
x <- 1:100 summary2(x, digits=2) summary2(c(x, NA, NA), digits=2)
Run the code above in your browser using DataLab