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.
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.