View source: R/weighted_quantile.R
weighted.tabulate | R Documentation |
weighted.tabulate()
returns the sum of weights for each integer in the vector bin
.
weighted.tabulate(bin, w = NULL, nbins = max(1L, bin, na.rm = TRUE))
bin |
a numeric vector of positive integers, or a factor. |
w |
a numeric vector of the sample weights for each value in |
nbins |
the number of bins to be used. |
weighted.tabulate()
is a wrapper function of tabulate()
to reflect sample weights.
This function is used in factor.encoder()
to enable weights-based encoding.
weighted.tabulate()
returns a numeric vector.
weighted.quantile
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.