td.nullreplace: Replace Null Values

Description Usage Arguments Details Value Examples

View source: R/td.nullreplace.R

Description

Function which replaces null values within a td data frame and column.

Usage

1
td.nullreplace(tdf, col, oTable, oDatabase = "", rType = "literal", rVal = "0")

Arguments

tdf

td data frame.

col

column name.

oTable

output table name.

oDatabase

output database name.

rType

type of replacement. Valid values are ("literal","mean","mode", and "median").

rVal

value for literal replacement.

Details

Build new table with column name after replacement is done via rType.

Value

td data frame pointing to new Teradata table with NULLs replaced.

Examples

1
2
3
4
## Not run: 
td.nullreplace(tdf,"age","newReplaceTable", rVal="16")

## End(Not run)

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