z[.td.data.frame: Extract Teradata Data Frame

Description Usage Arguments Details Value Examples

Description

Allow manipulation and extraction of a td data frame.

Usage

1
2
## S3 method for class 'td.data.frame'
x[i, j]

Arguments

x

td data frame.

i

element to extract

j

element to extract

Details

This overloaded function operates almost exactly like a data frame extract. It can be used to reduce the number of columns by using the index values. One noticeable difference is that a td data frame has no actual data in the client. This means that row operations don't extract certain rows like a data frame object. You must use td.sample if you wish to alter table sizes.

Value

td data frame of new column dimensions.

Examples

1
2
3
4
5
## Not run: 
tdf[3]  #returns td data frame with just column 3
tdf["age"]  #returns td data frame with column age

## End(Not run)

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