get_giedata2 | R Documentation |
Function to download data from GIE's AGSI+ API in bulk
get_giedata2( countries, companies = NULL, facilities = NULL, from = NULL, to = NULL, date = NULL, size = 30, timeout = 3, database = "agsi", verbose = FALSE, apikey = Sys.getenv("GIE_APIKEY") )
countries |
Character. Specify the countries of interest as two-digit |
companies |
A character vector of company EIC codes to get data from. |
facilities |
A character vector of facility EIC codes to get data from. |
from |
Character. Specify the start of the time span you are |
to |
Character. Specify the end of the time span you are |
date |
Character. If you want to have data only for one date. |
size |
Integer. The number of results per page. |
timeout |
Numeric. If the amount of pages of your request exceeds 60, a timeout |
database |
Character. The type of API you want to address ('agsi' or 'alsi'). |
verbose |
Logical. Prints information on function progress to the console (default: FALSE). |
apikey |
Character. Your personal API key. |
A data.frame with results
## Not run: get_giedata2(countries = c("DE", "AT", "FR"), date = "2022-04-01") ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.