cut_perc | R Documentation |
Cuts numeric vector in equal groups set by percentile. Export is af factor with numeric labels.
cut_perc(vec, percentile = 0.1)
vec |
name of vector |
percentile |
percentile for cuts. No check is made, sholud be a divisor of 1 as .25 og .1. Standard is .1 for centiles. |
##Tests the function by quantiles cut_perc(sample(1:100, 50, replace=TRUE),.25)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.