This function uses as.Date and a simple linear transformation.

toDate(times)

Arguments

times

a vector of durations

Value

A vector of dates as character strings of the type "1897-05-21".

See also

Author

Göran Broström

Examples

##---- Should be DIRECTLY executable !! ---- ##-- ==> Define data, use random, ##-- or do help(data=index) for the standard data sets. toDate(1897.357)
#> [1] "1897-05-10"