categorise | R Documentation |
This is a wrapper around the cut() function.
categorise(x, breaks)
x |
A numeric vector to be passed through. |
breaks |
Break points for the categories. Both the top and bottom breaks must be provided. |
Returns a character vector.
categorise(seq(10),breaks=c(0,3,10))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.