overlapping (version 1.5.0)

cutnumeric: Numerical conversion

Description

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.

Usage

cutnumeric(x, n = 1000)

Arguments

x

numeric vector

n

number of classes

Value

It returns a numerical vector. The values are the central points of classes obtained by the function cut.

Details

It calls the cut function, and then converts factor classess in numeric classes, returning for each class its central value.

See Also

cut

Examples

Run this code
# 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