sample-n-frac-keys {brolgar} | R Documentation |
Sample a number or fraction of keys to explore
Description
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 |
Value
tsibble with fewer observations of key
Examples
library(ggplot2)
sample_n_keys(heights,
size = 10) %>%
ggplot(aes(x = year,
y = height_cm,
group = country)) +
geom_line()
library(ggplot2)
sample_frac_keys(wages,
0.1) %>%
ggplot(aes(x = xp,
y = unemploy_rate,
group = id)) +
geom_line()
[Package brolgar version 1.0.1 Index]