# Simple random sample: states_srs
us_regions
states_srs <- us_regions %>%
sample_n(8)
# Count states by region
states_srs %>%
group_by(region) %>%
count()
# Simple random sample: states_srs
us_regions
states_srs <- us_regions %>%
sample_n(8)
# Count states by region
states_srs %>%
group_by(region) %>%
count()
本文标题:Simple random sample in R
本文链接:https://www.haomeiwen.com/subject/kboedxtx.html
网友评论