sample Functions only Work with Local tibbles | Teradata R Package - sample_n() and sample_frac() Functions only Work with Local tibbles - Teradata R Package

Teradata® R Package User Guide

Product
Teradata R Package
Release Number
16.20
Published
February 2020
Language
English (United States)
Last Update
2022-05-02
dita:mapPath
qbt1519078127352.ditamap
dita:ditavalPath
Generic_no_ie_no_tempfilter.ditaval
dita:id
B700-4005
lifecycle
previous
Product Category
Teradata Vantage

The sample_n() and sample_frac() functions in dplyr package only work with local tibbles.

To work around the limitation of these functions, try using the td_sample, td_sampling_mle and td_random_sample_mle functions provided by the tdplyr package.