td.sample: Sample Rows

Description Usage Arguments Details Value Examples

View source: R/td.sample.R

Description

Function to allow table a sample from a Teradata table.

Usage

1
td.sample(tdf, sizes = missing, oTable = "", oDatabase = "")

Arguments

tdf

td data frame.

sizes

size specification for the sample or samples you'd like to take.

oTable

output table name.

oDatabase

output database name.

Details

Function can draw one or more samples from a td data frame table. Sizes can be integer or decimal values under 1. With multiple samples you will get another column called sampleid so you can distinguish. If no output table is specified you will get a data frame with your samples back.

Value

td data frame pointing new sample table.

Examples

1
2
3
4
## Not run: 
td.sample(tdf,1000,"newSample")

## End(Not run)

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