Last chance! 50% off unlimited learning
Sale ends in
Function returning data frame of rivers of the Czech Republic as sf
lines. It takes a single parameter scope
with default "global".
reky(scope = "global")
Should the function return all rivers, or just Vltava in Prague / Svitava & Svratka in Brno?
sf
data frame with 6.198 rows of 4 variables + geometry:
Type of river: 1 = natural, 2 = man-made, 3 = fictional
Name, with Czech accents
Name, without Czech accents
Boolean indicating one of the major rivers.
Two special case scopes are defined: Praha (returning the part of Vltava in and around Prague) and Brno (returning Svitava and Svratka near and around Brno).
Due to package size constraints the data are stored externally (and a working internet connection is required to use the package).
The data is current to January 2015. Downloaded size is 1 MB.
# NOT RUN {
library(sf)
plot(st_geometry(subset(okresy(), KOD_LAU1 == "CZ0642"))) # Brno city
plot(reky("Brno"), add = TRUE) # Svitava & Svratka added to Brno my city plot
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab