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

1
cutnumeric(x, n = 1000)

Arguments

x

numeric vector

n

number of classes

Details

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

Value

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

Note

This function is called from the function overlap.

Author(s)

Massimiliano Pastore

See Also

cut

Examples

1
2
x <- rnorm(50)
cutnumeric(x,5)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.