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

Teradata® R Package User Guide

prodname
Teradata R Package
vrm_release
17.00
created_date
November 2020
category
User Guide
featnum
B700-4005-090K

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.