standard_error: Standard error of the mean of a numeric vector

View source: R/standard_error.R

standard_errorR Documentation

Standard error of the mean of a numeric vector

Description

Computes the standard error of the mean of a numeric vector as round(sqrt(var(x)/length(x)), 3)

Usage

standard_error(x)

Arguments

x

A numeric vector.

Details

The function removes NA values before computing the standard error, and rounds the result to 3 decimal places.

Value

A numeric value.

Examples

if(interactive()){

 standard_error(runif(10))

}

spatialRF documentation built on Aug. 19, 2022, 5:23 p.m.