Calculate an approximation of local hour
Usage
obs_addltime(
dt,
timeUTC = "timeUTC",
utc2lt = "site_utc2lst",
longitude = "longitude",
tz = "UTC",
timeonly = FALSE
)
Arguments
- dt
data.table
- timeUTC
Character indicating the Time column as POSIXct
- utc2lt
Character indicating the integer column to convert to local time
if available
- longitude
Character indicating the column with the lingitude
- tz
Timezone, default "UTC"
- timeonly
return only local_time column
Value
data.table with local time columns
Note
time depending n longitude is by John Miller (GML/NOAA)
Examples
if (FALSE) { # \dontrun{
# Do not run
} # }