baytrends (version 1.1.0)

dectime2Date: Date Conversion

Description

Convert time data expressed as year and fractional part of year to class "Date."

Usage

dectime2Date(x, Date.noon = TRUE)

Arguments

x

the decimal date to convert.

Date.noon

correct from noon correction for dectime.

Value

A vector of class "Date" corresponding to each value in x.

Details

Added from smwrBase.

See Also

dectime, as.Date

Examples

Run this code
# NOT RUN {
dectime("02/07/2013", date.format="%m/%d/%Y")
# Convert back the printed result:
dectime2Date(2013.103)
# }

Run the code above in your browser using DataLab