[1] 48414 17264 15086 14433 21397 34743 44794 14184 15606
[10] 18581 19217 21519 21312 30430 42917 42419 29306 15062
[19] 16402 19014 21195 33086 37929 15168 17276
[1] 14184 14433 15062 15086 15168 15606 16402 17264 17276
[10] 18581 19014 19217 21195 21312 21397 21519 29306 30430
[19] 33086 34743 37929 42419 42917 44794 48414
[1] 14433 15062 15062 15062 15086 15086 15168 16402 16402
[10] 17264 18581 19014 19014 19217 19217 21195 21195 21312
[19] 30430 34743 34743 34743 34743 44794 48414
sim
. Do just 4 to get the idea:tibble(sim = 1:4) %>%
rowwise() %>%
mutate(sample = list(sample(jays$attendance,
replace = TRUE))) %>%
mutate(my_mean = mean(sample))
list()
around the sample()
?
sample
produces a collection of numbers, not just a single onelist()
signals this: “make a list-column of samples”.filter
to select rows where something is true:
Comments