findDate | R Documentation |
Finds the date corresponding a row index of a matrix given the date (origin) of the first row
findDate(
k,
origin = "1961-1-1",
data.frame = TRUE,
decimal = FALSE,
character = FALSE
)
k |
integer or decimal value corresponding to number of days since |
origin |
origin date. See also |
data.frame |
logical variable. If |
decimal |
logical variable. If |
character |
logical variable. It is used if |
the date(s) corresponding to k
under different formats
It uses functions of time
package. It works like an inverse functions of extractdays
.
If k
is a vector, the function returns several dates for each element of k
date.mdy
,extractdays
findDate <- findDate(100,origin="1961-1-1",data.frame=FALSE,character=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.