R/standardError.R

Defines functions standardError

Documented in standardError

#' Calculate the Standard Error of the Mean
#'
#' @param v a numerical vector
#'
#' @return a number
#' @export
#'
#' @examples
#' standardError(rnorm(50))
#'
#' @importFrom stats sd
standardError <- function(v){
  sd(v) / length(v)
}
JoWatson2011/mypackage documentation built on Jan. 8, 2020, 12:02 a.m.