head(workplace)
# normalized weighted IQR (default)
weighted_IQR(workplace$employment, workplace$weight)
# weighted IQR (without normalization)
weighted_IQR(workplace$employment, workplace$weight, constant = 1)
Run the code above in your browser using DataLab