Learn R Programming

hydroscoper (version 0.1.0)

get_stations: Get stations data

Description

get_stations returns a dataframe with data from the stations that exist in a database of Hydroscope.

Usage

get_stations(subdomain = c("kyy", "ypaat", "emy"))

Arguments

subdomain

One of the subdomains of hydroscope.gr

Value

If subdomain is one of "kyy" (Ministry of Environment and Energy), "ypaat" (Ministry of Rural Development and Food), or "emy" (National Meteorological Service), returns a tidy dataframe with stations' data from the corresponding database of hydroscope.gr. Otherwise gives an error message.

The dataframe columns are:

StationID

The station's ID from the domain's database

Name

The station's name

WaterDivisionID

The station's Water Division ID, values: GR01 - GR14

WaterBasin

The station's Water Basin

PoliticalDivision

The station's Political Division

Owner

The station's owner

Type

The station's type

References

European Terrestrial Reference System 1989 (ETRS), http://bit.ly/2kJwFuf

Greek Water Divisions, http://bit.ly/2kk0tOm

Stations' data are retrieved from the Hydroscope's databases:

Examples

Run this code
# NOT RUN {
# get stations' data from the Greek National Meteorological Service
emy_stations <- get_stations(subdomain = "emy")

# }
# NOT RUN {
dei_stations <- get_stations(subdomain = "dei")
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab