Downloading hydrological data for the semi-annual and annual period available in the danepubliczne.imgw.pl collection

hydro_annual(year, coords = FALSE, value = "H", station = NULL,
  col_names = "short", ...)

Arguments

year

vector of years (e.g., 1966:2000)

coords

add coordinates of the stations (logical value TRUE or FALSE)

value

type of data (can be: state - "H" (default), flow - "Q", or temperature - "T")

station

name or ID of hydrological station(s). It accepts names (characters in CAPITAL LETTERS) or stations' IDs (numeric)

col_names

three types of column names possible: "short" - default, values with shorten names, "full" - full English description, "polish" - original names in the dataset

...

other parameters that may be passed to the 'shortening' function that shortens column names

Examples

yearly <- hydro_annual(year = 2000, value = "H", station = "ANNOPOL")
#> Warning: URL 'https://dane.imgw.pl/data/dane_pomiarowo_obserwacyjne/dane_hydrologiczne/polroczne_i_roczne/2000/polr_H_2000.zip': status was 'SSL connect error'
#> Error in download.file(address, temp): cannot open URL 'https://dane.imgw.pl/data/dane_pomiarowo_obserwacyjne/dane_hydrologiczne/polroczne_i_roczne/2000/polr_H_2000.zip'
head(yearly)
#> Error in head(yearly): object 'yearly' not found