powered by
Convert a list of category weighting into a 1D array of cumulative proportions.
util_w2cp(weighting)
A list of numeric values
Rectangular matrix with values ranging from 0-1
# NOT RUN { util_w2cp(c(0.2, 0.4, 0.6, 0.9)) # }
Run the code above in your browser using DataLab