R/titanic.R

#' Titanic data set in long format
#' @description
#' This `titanic` dataset is equivalent to
#' `datasets::Titanic |> dplyr::as_tibble() |> tidyr::uncount(n)`.
#' @seealso [datasets::Titanic]
#' @importFrom tidyr uncount
#' @importFrom dplyr as_tibble
#' @keywords datasets
#' @export
titanic <- datasets::Titanic |> dplyr::as_tibble() |> tidyr::uncount(n)

Try the guideR package in your browser

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

guideR documentation built on June 8, 2025, noon