Learn R Programming

weatherjoin (version 0.2.2)

.build_time: Build standard time keys used by weatherjoin

Description

Build standard time keys used by weatherjoin

Usage

.build_time(DT, time, tz = "UTC", time_api_resolved = c("daily", "hourly"))

Value

DT with timestamp_utc (POSIXct) and t_utc (numeric seconds) columns added.

Arguments

DT

data.table with input data.

time

User time= specification (single column or multiple columns).

tz

Timezone used for parsing/constructing timestamps (default UTC).

time_api_resolved

"daily" or "hourly" (already resolved from user setting/guess).