weighted_sd: Weighted standard deviation

Description Usage Arguments Value

Description

Computes a weighted standard deviation

Usage

1
weighted_sd(x, w = NULL, na.rm = FALSE)

Arguments

x

An object containing the values whose weighted mean is to be computed.

w

An integer vector of weights the same length as x giving the weights to use for elements of x (weights are > 1, not decimals).

na.rm

(logical) Whether NA values in x should be stripped before the computation proceeds.

Value

A length-one numeric vector.


messamat/globalIRmap documentation built on July 4, 2021, 10:48 a.m.