View source: R/sampling_utils.R
days2years | R Documentation |
This function converts days to years taking into consideration the start date of simulations.
days2years(sampleTimes, init_date)
sampleTimes |
Vector for sample times in days |
init_date |
The date in the format of year-month-day to convert days to years |
Vector of sample times in decimal years
sample_times <- c(8760, 10526, 14600)
init_date <- "1981-01-01"
days2years(sample_times, init_date)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.