get_physical_flows: Retrieve physical flows data

View source: R/open-api-helpers.R

get_physical_flowsR Documentation

Retrieve physical flows data

Description

Data about physical cross-border schedules detailing electricity flows actually transiting across the interconnection lines directly linking countries.

Usage

get_physical_flows(
  code_eic = NULL,
  start_date = NULL,
  end_date = NULL,
  token = NULL,
  raw = FALSE
)

Arguments

code_eic

Optional, EIC code of the desired country.

start_date

Optional, starting date to filter results.

end_date

Optional, ending date to filter results.

token

Token obtained with get_token.

raw

Return output from fromJSON.

Value

a data.table or a list if raw = TRUE.

Examples

## Not run: 

# First you need a token
id_client <- "XXXXX-XXXXX-XXXXX-XXXXX-XXXXX"
id_secret <- "XXXXX-XXXXX-XXXXX-XXXXX-XXXXX"
token <- get_token(
  key = list(id_client = id_client, id_secret = id_secret)
)

# Then you can retrieve flow data
phys_flow <- get_physical_flows(token = token)


## End(Not run)

dreamRs/rte.data documentation built on Oct. 6, 2022, 6:32 p.m.