[1] 48414 17264 15086 14433 21397 34743 44794 14184 15606 18581 19217 21519
[13] 21312 30430 42917 42419 29306 15062 16402 19014 21195 33086 37929 15168
[25] 17276
[1] 21195 34743 21312 44794 16402 19014 34743 21195 17264 18581 19014 19217
[13] 34743 19217 14433 15062 16402 15062 34743 15062 15086 15168 15086 48414
[25] 30430
[1] 14184 14433 15062 15086 15168 15606 16402 17264 17276 18581 19014 19217
[13] 21195 21312 21397 21519 29306 30430 33086 34743 37929 42419 42917 44794
[25] 48414
[1] 14433 15062 15062 15062 15086 15086 15168 16402 16402 17264 18581 19014
[13] 19014 19217 19217 21195 21195 21312 30430 34743 34743 34743 34743 44794
[25] 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