R/se.R

Defines functions se

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