get_stats.Rd
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
if (FALSE) { start <- "2019-04-01" end <- "2019-05-01" get_stats(start, end) get_stats(start, end, block = 2) }