discr | R Documentation |
Takes a vector v of numeric. Replaces the values of v by integers in (1:nd), according to values of breaks (increasing vector of numeric). If breaks is missing, nd regular quantiles are taken.
discr(v, nd = 5, breaks)
v |
A vector of numeric. |
nd |
The number of classes. |
breaks |
An increasing vector of numeric. |
A vector of factors.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.