View source: R/compute_day_number.R
compute_day_from_date | R Documentation |
Computes the day number corresponding to a given date (or vector of) with reference to a start date. Typically, the start date should be the date at which a STICS simulation will start. Leap years are properly handled.
compute_day_from_date(date, start_date)
date |
date vector you wish to convert,
in the |
start_date |
date used as the reference point,
in the |
numeric vector
Timothee Flutre
start_date <- as.Date("2014-08-01")
date <- as.Date("2015-02-10")
compute_day_from_date(date=date, start_date=start_date)
start_date <- as.Date("2008-08-01")
date <- as.Date("2009-02-10")
compute_day_from_date(date=date, start_date=start_date)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.