Description Usage Arguments Details Value Author(s) See Also Examples
It divides a numerical variable x
in classes, and returns for each class the central value.
Internal function, generally not to be called by the user.
1 | cutnumeric( x, n = 1000 )
|
x |
numeric vector |
n |
number of classes |
It calls the cut
function, and then converts factor classes in numeric classes, returning for each class its central value.
It returns a numerical vector. The values are the central points of classes obtained by the function cut
.
Massimiliano Pastore
1 2 | x <- rnorm(50)
cutnumeric(x,5)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.