get_data_yr: Get the current data year

View source: R/utils-get-data-yr.R

get_data_yrR Documentation

Get the current data year

Description

Get the current data year

Usage

get_data_yr(data_yr_month_cutoff = 4)

Arguments

data_yr_month_cutoff

The final month in the year that you would still only want data from the previous year. Often times we might pull the data in March but we do not actually want to include data from January, February, and March of that year. The default is April, or 4, to be safe. Thus, if you are working in June of 1999, the data year will be 1999 but if you are working in February of 1999 the data year will be 1998 using the default input.

Value

A four-digit integer is returned that specifies the year of interest.

Author(s)

Kelli F. Johnson


pacific-hake/hake-assessment documentation built on Jan. 14, 2025, 9:12 p.m.