October 2017
Beginner to intermediate
236 pages
7h 38m
English
To write a function, the first and most important thing is the name of the function. Let's perform the following steps to write your first function in R:
fsdByMean <- function(vectorInput){ average <- mean(vectorInput) std <- sd(vectorInput) stdByMean <- std/average return(stdByMean) }
fsdByMean(vectorInput = V1) [1] 0.5335133