agg.wtd.quantile.RdSplits the data into subsets (according to the levels of a factor) and computes a weighted quantile for each
agg.wtd.quantile(x, by, weights = NULL, prob = 0.5, na.rm = FALSE)numeric vector or data frame of numeric vectors
factor used to split the data
numeric vector of weights. If NULL (default), uniform weights (i.e. all equal to 1) are used.
a value between 0 and 1. Default is 0.5 (median)
logical, indicating whether NA values should be silently removed before the computation proceeds. Default is FALSE.
a data frame