R/take_poll.R

Defines functions take_poll

Documented in take_poll

#' Models results from taking a poll
#'
#' 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.
#'
#' @param n Sample size
#' @param ... additional arguments to be used by the function \code{sample}.
#'
#' @return None
#'
#' @examples
#' take_poll(25)
#'
#' @export
#'

take_poll <- function(n, ...){
  .take_poll(n, ...)
}

Try the dslabs package in your browser

Any scripts or data that you put into this service are public.

dslabs documentation built on May 29, 2024, 6:29 a.m.