create_bins: Creates bins given breaks

Description Usage Arguments Value See Also Examples

Description

Creates bins given breaks

Usage

1
create_bins(x, breaks, method = "cuts")

Arguments

x

X is a numeric vector which is to be discretized

breaks

Breaks are the breaks for the vector X to be broken at. This excludes endpoints

method

the approach to bin the variable, can either be cuts or hinge.

Value

A vector same length as X is returned with the numeric discretization

See Also

create_breaks

Examples

1
create_bins(1:10, c(3, 5))

binst documentation built on May 2, 2019, 7:32 a.m.

Related to create_bins in binst...