ezCut | R Documentation |
Cuts a numeric vector into factors using defined breaks.
ezCut(x, breaks, prefix = NULL, labels = NULL)
x |
a numeric vector to be cut. |
breaks |
The values by which the vector should be cut. 2 or more are needed. |
prefix |
adds a prefix to the level names. |
labels |
use labels for the factors instead of displaying the ranges provided by breaks. |
Returns the numeric input as factors.
Rehrauer, Hubert
Schmid, Peter
x = ezCut(1:10,breaks=c(2,5,7),prefix=letters[1:4])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.