as.Date1970: Date from a number of days since the start of 1970.

Description Usage Arguments Value Author(s) See Also Examples

Description

as.Date.numeric requires orgin to be specified. The present function assumes that this origin is January 1, 1970.

Usage

1

Arguments

x

a numeric vector of dates in days since the start of 1970.

...

optional arguments to pass to as.Date.

Value

Returns a vector of Dates

Author(s)

Spencer Graves

See Also

as.Date as.POSIXct1970

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
days <- c(0, 1, 365)
Dates <- as.Date1970(days)


all.equal(c('1970-01-01', '1970-01-02', '1971-01-01'),
          as.character(Dates))



all.equal(days, as.numeric(Dates))


Search within the Ecfun package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.