Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

clean_votes

Cleans votes


Description

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.

Usage

clean_votes(df)

Arguments

df

Data frame which must contain the vote data.

Value

Returns a tidy data frame

Examples

library(dplyr)
vh <- vote_history |>
filter(
  season == 40,
  episode == 10
) |>
count(vote)
vh

vh |>
clean_votes()

survivoR

Data from all Seasons of Survivor (US) TV Series in Tidy Format

v0.9.12
MIT + file LICENSE
Authors
Daniel Oehm [aut, cre]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.