JDay_to_date | R Documentation |
In agricultural assessments, the begining and end for a period of interest (e.g. chill accumulation) are often expressed as Julian days (JDay) or Day Of the Year (DOY). However, this makes difficult the interpretation of the results since most people are used to see dates. This function transform JDays into dates
JDay_to_date(JDay, year, date_format = "%Y-%m-%d", na.rm = FALSE)
JDay |
is a numeric vector of |
year |
is a numeric input to define the year for which the JDay is transformed to date |
date_format |
is a character vector representing the format in which the date should be retrieved. For
more options see |
na.rm |
is a boolean parameter used to skip the missing values. Default is set to |
JDay_to_date(JDay = 67 : 69, year = 2020, date_format = "%d.%m.%Y") JDay_to_date(JDay = c(67, NA, 69), year = 2025, date_format = "%d.%m.%Y", na.rm = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.