qdef {mefa} | R Documentation |
Converts a numeric vector into an ordinal one based on quantiles.
qdef(x, probs = seq(0, 1, 0.25))
x |
a numeric vector. |
probs |
numeric vector of probabilities with values in code{[0,1]} used by quantile . |
A vector of length the same as the input vector, containing integers from 1
to length(probs)-1
.
Peter Solymos, Solymos.Peter@aotk.szie.hu, http://www.univet.hu/users/psolymos/personal/
(vec <- rnorm(20)) (qd <- qdef(vec)) plot(vec, qd, type="h")