Given a vector of dates, the output is a vector of durations in years since "0000-01-01".
toTime(dates)
dates | A vector of dates in character form or of class |
---|
A vector of durations, as decribed above.
Göran Broström
##---- Should be DIRECTLY executable !! ---- ##-- ==> Define data, use random, ##-- or do help(data=index) for the standard data sets. toTime(c("1897-05-16", "1901-11-21"))#> [1] 1897.372 1901.887