datetime: Time & dates conversion

Description Usage Arguments Details Value Examples

View source: R/DateTime.R

Description

Convert DOY and time into a single numerical variable

Usage

1
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

1
2
3
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)

Example output

[1] 102.9167 102.9375 102.9583 102.9792 103.0000 103.0208 103.0417 103.0625

TDPanalysis documentation built on Feb. 28, 2020, 9:09 a.m.