defaultYear: Get and set the default year

defaultYearR Documentation

Get and set the default year

Description

Get and set the default year when retrieving event data

Usage

defaultYear(year = NULL)

Arguments

year

An integer or a 4-digit character string specifying the year of the FRC events you are looking for. If NULL or not supplied, the current calendar year will be made the default year.

Value

A 4-digit character string giving the year.

Note

The get...Event... functions use this, as the event key is a combination of the year and event location code.

Examples

## Not run: 
defaultYear(2003)
getEvents()$city
defaultYear() # reset to current year

## End(Not run)

BillDunlap/TheBlueAlliance documentation built on April 29, 2022, 12:23 a.m.