Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

take_poll

Models results from taking a poll


Description

The function shows a plot of a random sample drawn from an urn with blue and red beads. The sample is taken with replacement. The proportion of blue beads is not shown so that students can try to estimate it.

Usage

take_poll(n, ...)

Arguments

n

Sample size

...

additional arguments to be used by the function sample.

Value

None

Examples

take_poll(25)

dslabs

Data Science Labs

v0.7.4
Artistic-2.0
Authors
Rafael A. Irizarry, Amy Gill
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.