get_stats | R Documentation |
Get Carbon Intensity statistics between from and to dates
get_stats(start, end, block = NULL)
start |
character A start date of the stats data. The maximum date range is limited to 30 days. |
end |
character An end date of the stats data. The maximum date range is limited to 30 days. |
block |
numeric Block length in hours i.e. a block length of 2 hrs over a 24 hr period returns 12 items with the average, max, min for each 2 hr block |
tibble
## Not run: start <- "2019-04-01" end <- "2019-05-01" get_stats(start, end) get_stats(start, end, block = 2) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.