R/get.R

Defines functions get_cast

Documented in get_cast

#' Get cast for a season
#'
#' For a given season (or seasons) the function will return a data frame of the cast.
#'
#' @param .vs Version season. Can be a vector of `version_season` values.
#'
#' @returns A data frame
#' @export
#'
#' @examples
#' library(survivoR)
#'
#' get_cast("US47")
get_cast <- function(.vs) {

  survivoR::boot_mapping |>
    filter(version_season %in% .vs) |>
    filter(order == 0) |>
    select(version_season, castaway_id, castaway)

}

Try the survivoR package in your browser

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

survivoR documentation built on April 3, 2025, 5:34 p.m.