discretize: Convert continuous to interval data

Description Usage Arguments Details Value See Also

Description

Convert continuous to interval data

Usage

1
discretize(x, boundaries = seq(-3, 3, length.out = 4))

Arguments

x

the continuous data

boundaries

boundaries defining how continuous variable is mapped to scale levels

Details

Splits up a continuous scale into a discrete scale. The scale will have a number of levels equal to one more than the number of elements in boundaries. The default behavior is to create an interval scale with upper and lower boundaries at -3 and 3 respectively. This function is a fairly simple wrapper for cut.

Value

vector with discrete ratings

See Also

link{cut}


dalejbarr/forsterUVA documentation built on May 14, 2019, 3:31 p.m.