Learn R Programming

survivoR (version 2.3.5)

add_tribe: Add tribe

Description

Adds tribe to a data frame for a specified stage of the game e.g. original, swapped, swapped_2, etc.

Usage

add_tribe(df, .tribe_status = "Original")

Value

Data frame with tribe added.

Arguments

df

Data frame. Requires version_season and castaway_id,

.tribe_status

Tribe status e.g. original, swapped, swapped_2, etc.

Examples

Run this code

library(survivoR)
library(dplyr)

confessionals |>
  add_tribe()

Run the code above in your browser using DataLab