Package: rpspanel 0.1.0
rpspanel: US State Energy-Economy Panels with Renewable Portfolio Standards
Builds a documented, reproducible state-by-year panel for the 50 US states and the District of Columbia that combines energy consumption, prices and production from the US Energy Information Administration (EIA) State Energy Data System, electricity generation and retail sales, state energy-related carbon dioxide emissions, and state GDP, income and population from the Bureau of Economic Analysis (BEA). Data are downloaded on demand through the official APIs and cached locally, with the source, vintage and transformation of every variable recorded in a codebook. Renewable Portfolio Standard (RPS) rules are turned into standardised annual stringency indices (adoption, nominal, coverage-adjusted and incremental requirements, following Yin and Powers (2010) <doi:10.1016/j.enpol.2009.10.067>, plus design-flexibility indicators). Output works directly with the 'plm', 'fixest' and 'csdm' packages.
Authors:
rpspanel_0.1.0.tar.gz
rpspanel_0.1.0.zip(r-4.7-any)rpspanel_0.1.0.zip(r-4.6-any)rpspanel_0.1.0.zip(r-4.5-any)
rpspanel_0.1.0.tgz(r-4.6-any)rpspanel_0.1.0.tgz(r-4.5-any)
rpspanel_0.1.0.tar.gz(r-4.7-any)rpspanel_0.1.0.tar.gz(r-4.6-any)
rpspanel_0.1.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
rpspanel/json (API)
| # Install 'rpspanel' in R: |
| install.packages('rpspanel', repos = c('https://adebayomoses.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/adebayomoses/rpspanel/issues
Last updated from:0a302087f8. Checks:9 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel | OK | 136 | ||
| source / vignettes | OK | 217 | ||
| linux-release | OK | 128 | ||
| macos-release | OK | 101 | ||
| macos-oldrel | OK | 83 | ||
| windows-devel | OK | 86 | ||
| windows-release | OK | 79 | ||
| windows-oldrel | OK | 77 | ||
| wasm-release | OK | 110 |
Exports:as_pdatabuild_panelcite_sourcescodebookconvert_unitsconvert_units_availabledeflateexport_panelfetch_beafetch_censusfetch_eiafetch_rpsharmonise_statesrps_cache_clearrps_cache_dirrps_cache_listrps_rulesrps_stringencyus_states
Dependencies:askpassclicurlgluehttr2lifecyclemagrittropensslR6rlangsysvctrswithr
Last update: 2026-10-15
Started: 2026-10-14
Last update: 2026-10-14
Started: 2026-10-14
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| Convert a panel for estimation packages | as_pdata |
| Build a state-year energy-economy panel | build_panel |
| Manage the download cache | cache rps_cache_clear rps_cache_dir rps_cache_list |
| Citations for the data sources used | cite_sources |
| Variable codebook | codebook |
| Convert between units | convert_units convert_units_available |
| Convert nominal values to real values | deflate |
| Export a panel to CSV, Stata or Parquet | export_panel |
| Download data from the BEA API | fetch_bea |
| Download state data from the Census Bureau API | fetch_census |
| Download state data from the EIA API | fetch_eia |
| Get RPS rule coding from the package or a URL | fetch_rps |
| Harmonise state identifiers | harmonise_states |
| Coded Renewable Portfolio Standard rules | rps_rules |
| Annual RPS stringency indices | rps_stringency |
| US states and the District of Columbia | us_states |
