A simple R function that calculates standard deviation when given a numeric/integer vector.

Please see example usage below:

First, build a vector for the numbers you want to calculate standard deviation

vector_NHL_player_salaries <- c(4060000, 6590000, 5640000)

Secondly, use this vector as an input for standard_deviation function

standard_deviation(vector_NHL_player_salaries)


peter0083/standardev2 documentation built on May 25, 2019, 12:47 a.m.