Learn R Programming

intensegRid (version 0.1.2)

get_stats: Get Carbon Intensity statistics between from and to dates

Description

Get Carbon Intensity statistics between from and to dates

Usage

get_stats(start, end, block = NULL)

Value

tibble

Arguments

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

Examples

Run this code
if (FALSE) {
start <- "2019-04-01"
end <- "2019-05-01"
get_stats(start, end)
get_stats(start, end, block = 2)
}

Run the code above in your browser using DataLab