This function add timeUTC as POSIX class,
local time and ending sampling time
Usage
obs_agg(
dt,
cols = c("year", "month", "day", "hour", "minute", "second", "time", "time_decimal",
"value", "latitude", "longitude", "altitude", "pressure", "u", "v", "temperature",
"type_altitude"),
byalt = FALSE,
verbose = TRUE
)
Arguments
- dt
obspack data.table
- cols
Character which defines columns to be aggregated
- byalt
Logical, to aggregate by altitude or not (used in tower)
- verbose
logical to show more information
Value
A data.frame with with an index obspack.
Note
By default add column timeUTC based on the input column `key_time`
Examples
if (FALSE) { # \dontrun{
# Do not run
# dt <- obs_addtime(dt)
} # }