colVars | R Documentation |
Form column standard deviation and variances for numeric arrays (or data frames).
colVars(x, na.rm = FALSE, unname = FALSE)
colSDs(x, na.rm = FALSE, unname = FALSE)
x |
an array of two dimensions containing numeric, complex, integer or logical values, or a numeric data frame |
na.rm |
logical; remove missing values in each respective column? |
unname |
logical; apply |
Phil Chalmers rphilip.chalmers@gmail.com
colMeans
results <- matrix(rnorm(100), ncol=4)
colnames(results) <- paste0('stat', 1:4)
colVars(results)
colSDs(results)
results[1,1] <- NA
colSDs(results)
colSDs(results, na.rm=TRUE)
colSDs(results, na.rm=TRUE, unname=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.