Skip to contents

This is a convenience function to determine the set of years for which the RMarkdown script has to be run. This is useful when the RMarkdown script independently executes a function for each year.

Usage

parse_year_params(params)

Arguments

params

The params object made available by RMarkdown. It should have the fields years (a comma-separated string of years), year_start or year_end. If years is different from NULL (~ in YAML), years takes precedence over year_start and year_end.

Value

An integer vector of years.