Can anyone help me?
From the weather set of nycflights13, apply 100 different samples of 50.
set.seed(2019)
weather1 <- weather %>%
sample_n(size = 50)
Can anyone help me?
From the weather set of nycflights13, apply 100 different samples of 50.
set.seed(2019)
weather1 <- weather %>%
sample_n(size = 50)
I'm sure you can find better ways, but I propose:
n_samples <- 1:100 %>% purrr::map(sample_n,size=50,tbl=weather)
This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.