findDate {RMAWGEN} | R Documentation |
Finds the date corresponding a row index of a matrix given the date (origin) of the first row
Description
Finds the date corresponding a row index of a matrix given the date (origin) of the first row
Usage
findDate(k, origin = "1961-1-1", data.frame = TRUE, decimal = FALSE,
character = FALSE)
Arguments
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 |
Value
the date(s) corresponding to k
under different formats
Note
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
See Also
Examples
findDate <- findDate(100,origin="1961-1-1",data.frame=FALSE,character=TRUE)