wtd_summary: Weighted Summary

View source: R/utils.R

wtd_summaryR Documentation

Weighted Summary

Description

Compute a weighted summary of a numeric vector.

Usage

wtd_summary(x, weights = NULL)

Arguments

x

A numeric vector.

weights

A vector of weights, same length as x.

Details

If weights is NULL an unweighted summar is returned.

Value

A vector with values Min., 1st Qu., Median, Mean, 3rd Qu., Max..


pierucci/heemod documentation built on July 17, 2022, 9:27 p.m.