Learn R Programming

M3 (version 0.3)

decipher.M3.date: Decipher Models3 date format (YYYYDDD) into R's Date class.

Description

Decipher Models3 date format (YYYYDDD) into R's Date class.

Usage

decipher.M3.date(M3.date)

Arguments

M3.date
Date (numeric) in the format YYYYDDD, where DDD is a Julian day (since the beginning of year YYYY).

Value

References

http://www.baronams.com/products/ioapi/DATETIME.html

See Also

DateTimeClasses, get.datetime.seq, decipher.M3.time

Examples

Run this code
## Returns 2011-03-10, which is the 69th day of 2011.
decipher.M3.date(2011069)  

## Returns 2012-02-29.  This leap day is the 60th day of 2012.
decipher.M3.date(2012060)  

Run the code above in your browser using DataLab