Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

diy

Days in Year


Description

Given a single numeric value representing a year, it generates:
1) a vector of dates with all the days within the year, OR
2) the amount of days in the specified year

Usage

diy(year, out.type = "seq")

Arguments

year

numeric, the year for which the sequence of days will be generated

out.type

Character indicating the type of result that is given by this function. Valid values are:
-) seq : a vectorial sequence with all the days within the given year
-) nmbr: the number of days in the vectorial sequence with all the days within the given year

Author(s)

Mauricio Zambrano-Bigiarini, mzb.devel@gmail

See Also

Examples

## Sequence of daily dates for the year 1961
diy(1961)

## Computing the number of days between in 1961
diy(1961, out.type = "nmbr")

hydroTSM

Time Series Management, Analysis and Interpolation for Hydrological Modelling

v0.6-0
GPL (>= 2)
Authors
Mauricio Zambrano-Bigiarini [aut, cre, cph] (<https://orcid.org/0000-0002-9536-643X>)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.