cal.indices.365togreg: Compute indices for 365-days to Gregorian calendar conversion

Description Usage Arguments Value Author(s) Examples

View source: R/cal.indices.365togreg.R

Description

cal.indices.365togreg determines the day-of-year (DOY) indices for each individual year of a 365-days calendar (for a given period) at which to introduce NAs in order to transfer series to a full Gregorian calendar.

Usage

1
cal.indices.365togreg(yearend, outfile = NA)

Arguments

yearend

Last year to consider (implicitly, first year is year 1).

outfile

If provided, the resulting vector will be written into this RData file (optional).

Value

Vector (1:yearend): Index for each given 365-days year after which to append an NA days (NA: no NA day to be introduced in this year).

Author(s)

Sven Kotlarski (MeteoSwiss)

Examples

1
2
3
4
5
6
## Not run: 
# Calculate DOY indices after which to fill in NAs for all years
of the period 1 to 2200. No outfile written.
cal.indices.365togreg(2200)

## End(Not run)

SvenKotlarski/qmCH2018 documentation built on July 14, 2019, 7:39 p.m.