
Add timezone to measurements in an m-Path Sense database
Source:R/timezone_helpers.R
add_timezones_to_db.RdThis function looks for a Timezone table in a local m-Path Sense SQLite database and uses it
to assign timezone values to all other sensor tables. For each observation in a sensor table,
it finds the timezone interval that matches the observation's timestamp and adds or updates a
timezone column accordingly.
Arguments
- db
A database connection, typically created by
open_db().- sensors
A character vector of sensor table names to update. Defaults to
NULLfor all supported sensors.- .progress
Logical; whether to show a progress bar during processing. Defaults to
TRUE.