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))weighted.tabulate() returns a numeric vector.
a numeric vector of positive integers, or a factor.
a numeric vector of the sample weights for each value in bin.
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.quantile