Bin: Bins continuous and categorical variables

Description Usage Arguments Value Methods (by class)

Description

Bin seperates continuos variables into bin by a maximum threshold.

Usage

1
2
3
4
5
6
7
Bin(data, var = "Bin", threshold = 0.1)

## S3 method for class 'data.table'
Bin(data, var = "Bin", threshold = 0.1)

## S3 method for class 'data.frame'
Bin(data, var = "Bin", threshold = 0.1)

Arguments

data

a sorted data.frame or data.table

var

name to be used for new bin variable. Default is "Bin"

threshold

number from 0-1 that give the break from one bin to another. Default is .1

Value

a data.table (invisibly) or data.frame

Methods (by class)


MattKelliher-Gibson/ModelEvalr documentation built on May 7, 2019, 4:34 p.m.