Sample a number or fraction of keys to explore
Usage
sample_n_keys(.data, size)
sample_frac_keys(.data, size)
Arguments
- .data
tsibble object
- size
The number or fraction of observations, depending on the
function used. In sample_n_keys
, it is a number > 0, and in
sample_frac_keys
it is a fraction, between 0 and 1.
Value
tsibble with fewer observations of key