Learn R Programming

M3 (version 0.4)

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)

Value

Date specified by YYYYDDD in R's Date class.

Arguments

M3.date

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

Author

Jenise Swall

References

https://www.cmascenter.org/ioapi/documentation/all_versions/html/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