Learn R Programming

SticsRFiles (version 1.4.0)

compute_date_from_day: Convert day number into date

Description

Computes the date corresponding to a given day number (or vector of) with reference to a start year. Typically, the start year should be the year of a STICS simulation start, but not necessarily.

Usage

compute_date_from_day(day, start_year)

Value

Date vector

Arguments

day

day number(s) to be converted

start_year

year to be used as time reference (simulation start year).

Author

Timothee Flutre

Examples

Run this code

compute_date_from_day(day = 290, start_year = 1994)

compute_date_from_day(day = 700, start_year = 1994)

Run the code above in your browser using DataLab