discret: Discretization of a continuous variable

View source: R/discret.R

discretR Documentation

Discretization of a continuous variable

Description

Transform a continous variable into a discret variable.

Usage

discret(x, classes = 5, type = 7, ...)

Arguments

x

numerical vector

classes

a number of a numeric vector of two or more unique cut points giving the number of intervals into which x will be cut

type

an integer between 1 and 9 selecting one of the nine quantile algorithms detailed below to be used. For more information see the quantile fuction

...

other argumnt to discret function

Details

for later..

Value

a vector

Examples

x <- rnorm(1000)
dx <- discret(x,4)


amvallone/estdaR documentation built on March 30, 2024, 9:38 p.m.