Learn R Programming

eha (version 2.11.2)

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

Description

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

Usage

toDate(times)

Value

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

Arguments

times

a vector of durations

Author

Göran Broström

See Also

toTime

Examples

Run this code

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

Run the code above in your browser using DataLab