View source: R/position_statistics.R
position_statistic | R Documentation |
Calculate (weighted) positions statistics
position_statistic(x, w, measure, na.rm = TRUE)
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 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.