col_sds: Compute the column standard deviations from a dataframe

Description Usage Arguments Value Examples

View source: R/col_sds.R

Description

Credit: Adapted from Stephen Cohen on twitter

Usage

1
col_sds(df, na.rm)

Arguments

df

A data frame to process

na.rm

A boolean. Default: False (remove NA values)

Value

column standard deviations

Examples

1
2
3
4
library(statshelpR)
df <- data.frame(x=c(1.0, 1.5, 2.0, 2.5, 3.0),
                 y=c(2.0, 3.0, 4.0, 5.0, 6.0))
print(col_sds(df, na.rm=FALSE))

jrminter/statshelpR documentation built on May 2, 2020, 12:08 a.m.