cutnumeric: Numerical conversion

Description Usage Arguments Details Value 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 classes 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.

Author(s)

Massimiliano Pastore

See Also

cut

Examples

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

masspastore/overlapping documentation built on Oct. 18, 2019, 3:31 a.m.