
Last chance! 50% off unlimited learning
Sale ends in
Converts a quantile in character form to a number regarding some data. String form for a quantile is represented as a number prefixed with “q”; for example, 10th quantile is “q10” while 2nd quantile is “q2”. Will only take a quantile of non-zero data values
SetQuantile(cutoff, data)
The cutoff to turn into a quantile
The data to turn find the quantile of
The numerical representation of the quantile
# NOT RUN {
set.seed(42)
SetQuantile('q10', sample(1:100, 10))
# }
Run the code above in your browser using DataLab