Learn R Programming

survivoR (version 2.3.5)

add_finalist: Add winner

Description

Adds a winner flag to the data set.

Usage

add_finalist(df)

Value

A data frame with a logical flag for the winner

Arguments

df

Data frame. Requires version_season and castaway_id.

Examples

Run this code

library(survivoR)
library(dplyr)

confessionals |>
  add_winner()

Run the code above in your browser using DataLab