Learn R Programming

educabR (version 0.1.0)

validate_year: Validate year parameter

Description

Internal function to validate that a year is available for a dataset.

Usage

validate_year(year, dataset)

Value

The validated year (invisibly), or aborts with error.

Arguments

year

The year to validate.

dataset

The dataset name.