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)
Run the code above in your browser using DataLab