ts_translate_stations.Rd
Translate stations from or to the codings in Station, StationName and StationID. Its useful if the data are provided with different station codings to the main ones used in the database.
ts_translate_stations(
data,
from = "StationID",
to = "Station",
na_rm = TRUE,
conn = getOption("tsdbr.conn", NULL)
)
A data frame with the column Station of the station coding.
A string indicating the coding to translate from. Possible values are 'Station', 'StationName' and 'StationID'.
A string indicating the coding to translate to.
A flag indicating whether to remove missing stations. Possible values are 'Station', 'StationName' and 'StationID'.
An object of class SQLiteConnection.
The translated data