ascat | R Documentation |
Convert number to factor by inner breaks
ascat(x, breaks, labels = NULL, include.lowest = TRUE)
x |
a numeric vector |
breaks |
a numeric vector of two or more unique cut points |
labels |
labels for the levels of the resulting category |
A factor
is returned
ascat(1:10, 5) # eqaul cut(1:10, c(1, 5, 10), include.lowest = TRUE)
ascat(1:10, 5, c("less than or euqal to 5", "greater than 5"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.