position_statistic: Calculate (weighted) positions statistics

View source: R/position_statistics.R

position_statisticR Documentation

Calculate (weighted) positions statistics

Description

Calculate (weighted) positions statistics

Usage

position_statistic(x, w, measure, na.rm = TRUE)

Arguments

x

a vector of positions

w

a vector of weights the same length as x

measure

the statistics to compute, 'mean', 'median', 'sd'

na.rm

whether to exclude 'NA' values from the calculation


ghxm/comPosition documentation built on Jan. 29, 2024, 6:57 p.m.