filter_alive | R Documentation |
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")
df |
Input data frame. Must have |
.ep |
Episode. This will filter the castaways that are still alive at either the start or end of the episode. |
.at |
Either 'start' or 'end' to filter those who are still alive in the game. |
A data frame filtered to castaways who are alive.
library(survivoR)
library(dplyr)
confessionals |>
filter_us(47) |>
filter_alive(12) |>
group_by(castaway) |>
summarise(n = sum(confessional_count))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.