discret | R Documentation |
Transform a continous variable into a discret variable.
discret(x, classes = 5, type = 7, ...)
x |
numerical vector |
classes |
a number of a numeric vector of two or more unique cut points giving the number of intervals into which x will be cut |
type |
an integer between 1 and 9 selecting one of the nine quantile algorithms detailed below to be used. For more information see the quantile fuction |
... |
other argumnt to |
for later..
a vector
x <- rnorm(1000)
dx <- discret(x,4)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.