continuous2ordinal_ | R Documentation |
Discretize continuous x to ordinal z with k
levels.
continuous2ordinal_(x, k = 2, by = "dist", qmin = 0.1, qmax = 0.9)
x |
continuous vector |
k |
number of ordinal levels. Generated ordinal vector takes value from |
by |
Select cut points by absolute values if 'dist' and by quantiles if 'quantile' |
qmin |
Cutoff points are slected in the range of 'qmin' and 'qmax' quantiles of the data 'x' |
qmax |
See 'qmin'. |
an ordinal vector.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.