Learn R Programming

injurytools (version 2.0.1)

season2year: Get the year

Description

Get the year given the season.

Usage

season2year(season)

Value

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

Arguments

season

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

Examples

Run this code
season <- "2022/2023"
season2year(season)

Run the code above in your browser using DataLab