R/data-soda.R

#' soda
#'
#' A randomly generated dataset of soda preference (cola or orange) based on location.
#'
#' @name soda
#' @docType data
#' @format A data frame with 60 observations on the following 2 variables.
#' \describe{
#'   \item{drink}{Soda preference, cola or orange.}
#'   \item{location}{Is the person from the West coast or East coast?}
#' }
#' @keywords datasets
#' @examples
#'
#' library(dplyr)
#'
#' soda |>
#'   count(location, drink)
"soda"

Try the openintro package in your browser

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

openintro documentation built on June 22, 2024, 7:37 p.m.