season2year: Get the year

View source: R/utils.R

season2yearR Documentation

Get the year

Description

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)

injurytools documentation built on Nov. 15, 2023, 1:06 a.m.