Cleans votes
There are certain events in the game of survivor which mean someone may attend tribal council and
not get the change to vote for some reason or their vote is unique e.g. when rocks are drawn. You
may want to remove the votes that were not an actual vote for a person. clean_votes
is a
convenience function to remove these records. Can be piped.
clean_votes(df)
df |
Data frame which must contain the |
Returns a tidy data frame
library(dplyr) vh <- vote_history |> filter( season == 40, episode == 10 ) |> count(vote) vh vh |> clean_votes()
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.