powered by
Get the year given the season.
season2year(season)
Given the season, it returns the year (in numeric) in which the season started.
numeric
Character/factor specifying the season. It should follow the pattern "xxxx/yyyy", e.g. "2005/2006".
season <- "2022/2023" season2year(season)
Run the code above in your browser using DataLab