cutnumeric: Numerical conversion

Description Usage Arguments Details Value Note Author(s) See Also Examples

View source: R/cutnumeric.R

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)

overlapping documentation built on June 20, 2017, 9:13 a.m.

Search within the overlapping package
Search all R packages, documentation and source code