Description Usage Arguments Details Value Author(s) See Also Examples
Discretize using equally spaced quantiles for the breaks.
1 2 3 | cutEq(x, n, type = 2, dig.lab = 4, ...)
reorderByFreq(x)
|
x |
for |
n |
number of levels (groups) to cut into. |
type |
type of quantile, see |
dig.lab |
digits to use in formatting labels. |
... |
ignored. |
cutEq
is similar to cut
but divides into roughly
equally-sized groups, rather than dividing into bins of equal width.
reorderByFreq
orders levels of a factor by their frequency.
It is basically reorder(x, x, length)
, but reversed.
cutEq
returns an ordered factor.
reorderByFreq
returns a factor with the same values as its
input, but with levels reordered.
Felix Andrews felix@nfrac.org
cut
, cut2
in Hmisc
package, reorder
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.