boil: Take the weighted mean of a function of a vector

Description Usage Arguments Value

View source: R/boil.R

Description

Take the weighted mean of a function of a vector

Usage

1
2
boil(x, f = value, g = stats::weighted.mean, w = rep(1, length(x)),
  ...)

Arguments

x

the input.

f

a function, typically to convert x to logical. Default value (atypical).

g

a function to summarize the output. Default weighted.mean.

w

weights. Default 1.

...

other arguments to f. Most cases take an argument y of values corresponding to success.

Value

a data.frame with a numeric value for each possible outcome.


deepfriar/gilez documentation built on Dec. 19, 2021, 10:09 p.m.