Learn R Programming

chillR (version 0.75)

Date2YEARMODA: Date to YEARMODA conversion

Description

Converts R dates to YEARMODA format

Usage

Date2YEARMODA(Date, hours = FALSE)

Value

YEARMODA object (e.g. 20111224 for 24th December 2011)

Arguments

Date

Date in R date format

hours

boolean variable indicating whether YEARMODAHO should be calculated (YEARMODA + hours)

Author

Eike Luedeling

Details

Converts R date to YEARMODA

Examples

Run this code


Date2YEARMODA(YEARMODA2Date(20001205))
Date2YEARMODA(YEARMODA2Date(19901003))

 

Run the code above in your browser using DataLab