td.bincode: Create Table of Bincode Values

Description Usage Arguments Details Value Examples

View source: R/td.bincode.R

Description

Generate a Teradata table of columns and the newly bincoded column.

Usage

1
td.bincode(tdf, col, oTable, oDatabase = "", bins = 10)

Arguments

tdf

td data frame.

col

name of column to be bincoded.

oTable

output table name.

oDatabase

output database name.

bins

number of groups to bin(break) column into.

Details

Create a new table with the same column name as the input but now with bincoded values.

Value

td data frame that represents the new table created by bincode.

Examples

1
2
3
4
## Not run: 
td.bincode(tdf, "age", "newBinTable", bins=12) # break age into 12 groups or bins

## End(Not run)

nonsleepr/teradataR documentation built on May 23, 2019, 9:32 p.m.