Learn R Programming

survivoR (version 2.3.5)

filter_us: Filter to US seasons

Description

Filter a data set to a specified set of US season or list of seasons. A shorthand version of filter_vs() for the US seasons.

Usage

filter_us(df, .season = NULL)

Value

Data frame filtered to the specified US seasons

Arguments

df

Data frame. Must include version and season.

.season

Season or vector of seasons. If NULL if will filter to all US seasons.

Examples

Run this code

library(survivoR)
library(dplyr)

confessionals |>
  filter_us(47)

Run the code above in your browser using DataLab