filter_final_n {survivoR}R Documentation

Filter final n

Description

Filters to the final n players e.g. the final 4.

Usage

filter_final_n(df, .final_n)

Arguments

df

Input data frame. Must have version_season

.final_n

An integer to represent the final n.

Value

A data frame filtered to only the final n

Examples


library(survivoR)
library(dplyr)

confessionals |>
  filter_us(47) |>
  filter_final_n(6) |>
  group_by(castaway) |>
  summarise(n = sum(confessional_count))


[Package survivoR version 2.3.5 Index]