resolve_datasource: Define the datasource using the station number

View source: R/resolve_identifiers.R

resolve_datasourceR Documentation

Define the datasource using the station number

Description

Using the 'stations-nummer' as provided on waterinfo.be, this function tries to identify the datasource to use for the particular variable

Usage

resolve_datasource(station_no)

Arguments

station_no

'stations-nummer' as it appears on the download page of waterinfo.be

Details

Notice that VMM did not provide this in the official documentation, but this has just been derived by checking the API response as such. A more automated and less hard-coded approach would be beneficial, but this data is not available at the moment.

Value

integer 1 for VMM, 4 for other 'meetnetten' (HIC,...)

Examples

resolve_datasource('akl03e-1066')
resolve_datasource('K07_OM421')

stijnvanhoey/wateRinfo documentation built on July 12, 2022, 2:20 p.m.