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

Teradata® Package for R User Guide

Product
Teradata Package for R
Release Number
17.00
Published
July 2021
Language
English (United States)
Last Update
2023-08-08
dita:mapPath
yih1585763700215.ditamap
dita:ditavalPath
ayr1485454803741.ditaval
dita:id
B700-4005
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.