powered by
It divides a numerical variable x in classes, and returns for each class the central value.
x
Internal function, generally not to be called by the user.
cutnumeric(x, n = 1000)
numeric vector
number of classes
It returns a numerical vector. The values are the central points of classes obtained by the function cut.
cut
It calls the cut function, and then converts factor classess in numeric classes, returning for each class its central value.
# NOT RUN { x <- rnorm(50) cutnumeric(x,5) # } # NOT RUN { <!-- % Add one or more standard keywords, see file 'KEYWORDS' in the --> # } # NOT RUN { <!-- % R documentation directory. --> # }
Run the code above in your browser using DataLab