get_wasserportal_master_data: Wasserportal Berlin: get master data for a single station

View source: R/get_wasserportal_masters_data.R

get_wasserportal_master_dataR Documentation

Wasserportal Berlin: get master data for a single station

Description

Wasserportal Berlin: get master data for a single station

Usage

get_wasserportal_master_data(master_url)

Arguments

master_url

url with master data for single station as retrieved by get_wasserportal_stations_table

Value

data frame with metadata for selected station

Examples

## Not run: 
stations_list <- wasserportal::get_stations(type = "list")

# GW Station
master_url <- stations_list %>%
  kwb.utils::selectElements("groundwater.level") %>%
  kwb.utils::selectColumns("stammdaten_link")[1L]

get_wasserportal_master_data(master_url)

# SW Station

# Reduce  to monitoring stations maintained by Berlin
master_urls <- stations_list %>%
  kwb.utils::selectElements("surface_water.water_level") %>%
  dplyr::filter(.data$Betreiber == "Land Berlin") %>%
  dplyr::pull(.data$stammdaten_link)

get_wasserportal_master_data(master_urls[1L])

## End(Not run)


KWB-R/wasserportal documentation built on June 6, 2024, 10:26 a.m.