generation_get: This wraps a GET request to the API

Description Usage Examples

View source: R/generation_get.R

Description

There's a limit of 200 documents, so the API will return an error if this limit is reached.

Usage

1
2
3
4
5
6
7
8
9
generation_get(documentType = NULL, processType = NULL,
  businessType = NULL, psrType = NULL, type_MarketAgreement.Type = NULL,
  contract_MarketAgreement.Type = NULL, auction.Type = NULL,
  auction.Category = NULL,
  classificationSequence_AttributeInstanceComponent.Position = NULL,
  outBiddingZone_Domain = NULL, biddingZone_Domain = NULL,
  controlArea_Domain = NULL, in_Domain = NULL, out_Domain = NULL,
  acquiring_Domain = NULL, timeInterval = NULL, periodStart = NULL,
  periodEnd = NULL, securityToken = Sys.getenv("ENTSOE_PAT"))

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
library(entsoeR)

# 
# https://transparency.entsoe.eu/content/static_content/Static%20content/web%20api/Guide.html#_outages
# 4.4.1. Installed Generation Capacity Aggregated [14.1.A]
generation_get(documentType = "A68",
               processType = "A33",
               psrType = "B16",
               in_Domain = "10YCZ-CEPS-----N",
               periodStart = "201512312300",
               periodEnd = "201612312300")
 
# 4.4.2. Installed Generation Capacity per Unit [14.1.B]
generation_get(documentType = "A71",
               processType = "A33",
               psrType = "B02",
               in_Domain = "10YCZ-CEPS-----N",
               periodStart = "201512312300",
               periodEnd = "201612312300")
 
# 4.4.3. Day-ahead Aggregated Generation [14.1.C]
# This example is rather slow
generation_get(documentType = "A71",
               processType = "A01",
               in_Domain = "10YCZ-CEPS-----N",
               periodStart = "201512312300",
               periodEnd = "201612312300")
 
# 4.4.4. Day-ahead Generation Forecasts for Wind and Solar [14.1.D]
# This example is rather slow
generation_get(documentType = "A69",
               processType = "A01",
               psrType = "B16",
               in_Domain = "10YCZ-CEPS-----N",
               periodStart = "201512312300",
               periodEnd = "201612312300")
 
# 4.4.5. Actual Generation Output per Generation Unit [16.1.A]
# This example is rather slow
# This example is slightly modified compared to the example on th API page
# as the API only allows results for one day.
generation_get(documentType = "A73",
               processType = "A16",
               psrType = "B02",
               in_Domain = "10YCZ-CEPS-----N",
               periodStart = "201512312300",
               periodEnd = "201601012300")
 

krose/entsoeR documentation built on Oct. 10, 2020, 4:35 p.m.