datetime {TDPanalysis}R Documentation

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

Details

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

Value

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

Examples

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)

[Package TDPanalysis version 1.0 Index]