yday2date: Convert a Julian day to a date/month/season

View source: R/time_categories.R

yday2dateR Documentation

Convert a Julian day to a date/month/season

Description

This function converts a Julian day to a date/month/season in any given year. This is useful, for instance, when making inferences from models of a response ~ Julian day, if you want to quickly draw inferences from models in terms of time units that are more familiar.

Usage

yday2date(yday, origin = "2016-01-01", verbose = TRUE, ...)

Arguments

yday

A numeric input specifying the Julian day (the number of days since January 1st).

origin

A character date (YYYY-MM-DD) that defines the first day of the year from which Julian day has been calculated.

verbose

A logical input that defines whether or not to print the date, month and season.

...

Additional arguments (none implemented).

Value

The function invisibly returns a list of the date, month and year.

Author(s)

Edward Lavender

Examples

yday2date(16)


edwardlavender/Tools4ETS documentation built on Nov. 29, 2022, 7:41 a.m.