Learn R Programming

R2sample (version 4.0.1)

wbincounter: Find counts and/or sum of weights in bins. Useful for power calculations. Replaces hist command from R.

Description

Find counts and/or sum of weights in bins. Useful for power calculations. Replaces hist command from R.

Usage

wbincounter(x, bins, w)

Value

sum of weights in bins

Arguments

x

numeric vector

bins

numeric vector

w

numeric vector of weights