summ | R Documentation |
Calculation of summary statistics for each column of a matrix or data frame. In the present version, only quantitative variables are considered.
summ(X, nam = NULL, digits = 3)
X |
A matrix or data frame containing the variables to summarize. |
nam |
Names of the variables to summarize (vector of character strings). Default to |
digits |
The number of digits for the numerical outputs. |
A dataframe of summary statistics.
dat <- data.frame(
v1 = rnorm(10),
v2 = c(NA, rnorm(8), NA),
v3 = c(NA, NA, NA, rnorm(7))
)
dat
summ(dat)
summ(dat, nam = c("v1", "v3"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.