get_data: Get time series values in a tibble

Description Usage Arguments Value Note Author(s) References Examples

View source: R/get_data.R

Description

get_data returns a tibble from a Hydroscope's time-series text file.

Usage

1
get_data(subdomain = c("kyy", "ypaat", "emy", "deh"), time_id)

Arguments

subdomain

One of the subdomains of hydroscope.gr

time_id

A time series ID

Value

If subdomain is one of:

and time_id exists in that subdomain, returns a tibble with the time series values. Otherwise returns an error message.

The dataframe columns are:

date

The time series Dates (POSIXct)

value

The time series values (numeric)

comment

Comments about the values (character)

Note

Data are not available freely in the sub-domains: "deh" (Greek Public Power Corporation) and "emy" (National Meteorological Service).

Author(s)

Konstantinos Vantas, kon.vantas@gmail.com

References

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

Examples

1
2
3
4
5
## Not run: 
# get time series 912 from the Greek Ministry of Environment and Energy
time_series <- get_data("kyy", 912)

## End(Not run)

hydroscoper documentation built on May 14, 2021, 5:08 p.m.