R/standard_error.R

Defines functions standard_error

Documented in standard_error

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