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

Deployment
VantageCloud
VantageCore
Edition
Enterprise
IntelliFlex
VMware
Product
Teradata Package for R
Release Number
17.20
Published
March 2024
ft:locale
en-US
ft:lastEdition
2024-04-09
dita:mapPath
efv1707506846369.ditamap
dita:ditavalPath
ayr1485454803741.ditaval
dita:id
nqx1518630623256
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.