date_correct: correct data values

View source: R/date_correct.R

date_correctR Documentation

correct data values

Description

Round start and end dates to conform with data api standards. See api documentation (http://data.worldbank.org/developers/climate-data-api) for full details

Usage

date_correct(start, end)

Arguments

start

The start year

end

The end year

Value

a 2xM matrix where M in the number of periods in the data api

Examples

## Not run: 
date_correct(1921,1957)

## End(Not run)

ropensci/rWBclimate documentation built on Sept. 4, 2024, 5:53 p.m.