Skip to contents

Wasserportal Master Data: download and Import in R List

Usage

wp_masters_data_to_list(
  overview_list_names,
  target_dir = tempdir(),
  file_prefix = "stations_",
  is_zipped = FALSE
)

Arguments

overview_list_names

names of "overview_list" as retrieved by get_stations

target_dir

target directory for downloading data (default: tempdir())

file_prefix

prefix given to file names

is_zipped

are the data to be downloaded zipped (default: FALSE)

Value

downloads csv master data from Wasserportal

Examples

if (FALSE) {
stations <- wasserportal::get_stations()
overview_list_names <- names(stations$overview_list)
wp_masters_data_list <- wp_masters_data_to_list(overview_list_names)
}