filter_final_n: Filter final 'n'

View source: R/filters.R

filter_final_nR 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))


survivoR documentation built on April 3, 2025, 5:34 p.m.