Given a set of arbitrary parameters that includes at least a weight column, take a weighted average of all the other parameters.

combine_norm(dat)

Arguments

dat

Dataframe of mean, sd and weights.

Value

A dataframe.

See also

Examples

dat <- data.frame(mean = c(10, 20, 30), sd = c(4, 5, 10), weight = c(2, 1, 2)) combine_norm(dat)
#> mean sd #> 1 20 6.6