toDOY | R Documentation |
Transfers the date (from year, month and day) to the value of day-of-year.
toDOY(Year, Month, Day)
Year |
the vector of years |
Month |
the vector of months |
Day |
the vector of days |
The user needs to provide the three separate vectors of Year
, Month
and Day
,
rather than providing a single date vector. The arguments can be numerical vectors or character vectors.
The returned value is a vector of transferred dates in day-of-year.
The returned vector, DOY
, usually matches with the year vector and the mean daily
temperature vector as arguments in other functions, e.g., the ADD
function.
Peijian Shi pjshi@njfu.edu.cn, Zhenghong Chen chenzh64@126.com, Jing Tan jmjwyb@163.com, Brady K. Quinn Brady.Quinn@dfo-mpo.gc.ca.
Shi, P., Chen, Z., Reddy, G.V.P., Hui, C., Huang, J., Xiao, M. (2017a) Timing of cherry tree blooming:
Contrasting effects of rising winter low temperatures and early spring temperatures.
Agricultural and Forest Meteorology 240-
241, 78-
89. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1016/j.agrformet.2017.04.001")}
Shi, P., Fan, M., Reddy, G.V.P. (2017b) Comparison of thermal performance equations in describing
temperature-dependent developmental rates of insects: (III) Phenological applications.
Annals of the Entomological Society of America 110, 558-
564. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1093/aesa/sax063")}
BJDAT
data(BJDAT)
X2 <- BJDAT
DOY2 <- toDOY(X2$Year, X2$Month, X2$Day)
# cbind(X2$DOY, DOY2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.