Learn R Programming

RCzechia (version 1.6.0)

reky: Rivers

Description

Function returning data frame of rivers of the Czech Republic as sf lines. It takes a single parameter scope with default "global".

Usage

reky(scope = "global")

Arguments

scope

Should the function return all rivers, or just Vltava in Prague / Svitava & Svratka in Brno?

Format

sf data frame with 6.198 rows of 4 variables + geometry:

TYP

Type of river: 1 = natural, 2 = man-made, 3 = fictional

NAZEV

Name, with Czech accents

NAZEV_ASCII

Name, without Czech accents

Major

Boolean indicating one of the major rivers.

Details

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.

Examples

Run this code
# 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

# }

Run the code above in your browser using DataLab