📜  如何通过重采样在 r 中引导 - C 编程语言代码示例

📅  最后修改于: 2022-03-11 15:04:39.605000             🧑  作者: Mango

代码示例1
# Resample 100 times, and find the mean of each
data_frame(num = 1:100) %>% 
    group_by(num) %>% 
    mutate(means = mean(sample(x, replace = TRUE))) %>% 
    ggplot(aes(x = means)) +
    geom_freqpoly()