Learn R Programming

TDPanalysis (version 1.0)

datetime: Time & dates conversion

Description

Convert DOY and time into a single numerical variable

Usage

datetime(dates, Time)

Arguments

dates

Vector with dates in the DOY format.

Time

Vector with time

Value

Return a vector containing DOY and time as a single numerical variable

Details

time vector should be numerical (e.g. as outputed by the time.to.cont function)

Examples

Run this code
# NOT RUN {
dates = c(102,102,102,102,103,103,103,103)
Time = c(22, 22.5, 23, 23.5, 0, 0.5, 1, 1.5)
datetime(dates=dates, Time=Time)
# }

Run the code above in your browser using DataLab