R/standard_error.R

Defines functions standard_error

Documented in standard_error

#' Calculate the standard error for a sample
#'
#' returns the standard error of
#' a numeric vector
#'
#' @param v numeric vector
#'
#' @return number
#' @export
#'
#' @examples
#' standard_error(rnorm(50))
standard_error <- function(v){
  sd(v)/sqrt(length(v))
}
kathleencheung/mypackage documentation built on Jan. 8, 2020, 12:06 a.m.