Context: I compute summary statistics by group, I need to use hmisc::wtd.quantile() function because I have frequency of each value.
hmisc::wtd.quantile()