Skip to contents

Fetches the California Air Resources Board auction settlement price time series, updated quarterly after each joint California- Quebec auction.

Usage

co2_california_prices(refresh = FALSE)

Arguments

refresh

Re-download? Default FALSE.

Value

A data frame with joint_auction, quarter, settlement_price_usd, reserve_price_usd.

Examples

# \donttest{
op <- options(carbondata.cache_dir = tempdir())
try({
  prices <- co2_california_prices()
})
#>  Downloading California Cap-and-Trade auction prices...
#> Error in co2_download(url, dest, refresh = refresh) : Download of
#> <https://ww2.arb.ca.gov/sites/default/files/2022-12/nc-allowance_prices.csv>
#> returned HTTP 202 with an empty body.
#>  The publisher may be refusing automated clients from this network.
#>   Retry later, or report at
#>   https://github.com/charlescoverdale/carbondata/issues.
options(op)
# }