powered by
Filters a given dataset to those that are still alive in the game at the start or end of a user specified episode.
filter_alive(df, .ep = NULL, .at = "end")
A data frame filtered to castaways who are alive.
Input data frame. Must have version_season
version_season
Episode. This will filter the castaways that are still alive at either the start or end of the episode.
Either 'start' or 'end' to filter those who are still alive in the game.
library(survivoR) library(dplyr) confessionals |> filter_us(47) |> filter_alive(12) |> group_by(castaway) |> summarise(n = sum(confessional_count))
Run the code above in your browser using DataLab