toDate: Convert time in years since "0000-01-01" to a date.

Description Usage Arguments Value Author(s) See Also Examples

View source: R/toDate.R

Description

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

Usage

1
toDate(times)

Arguments

times

a vector of durations

Value

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

Author(s)

Göran Broström

See Also

toTime

Examples

1
2
3
4
##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--	or do  help(data=index)  for the standard data sets.
toDate(1897.357)

goranbrostrom/eha documentation built on Sept. 30, 2018, 5:11 p.m.