Skip to contents

Get the year given the season.

Usage

season2year(season)

Arguments

season

Character/factor specifying the season. It should follow the pattern "xxxx/yyyy", e.g. "2005/2006".

Value

Given the season, it returns the year (in numeric) in which the season started.

Examples

season <- "2022/2023"
season2year(season)
#> [1] 2022