download_clean_save_bp: Download, clean and save BP World Energy Review Database to...

View source: R/functions.R

download_clean_save_bpR Documentation

Download, clean and save BP World Energy Review Database to feather format

Description

Download, clean and save BP World Energy Review Database to feather format

Usage

download_clean_save_bp(
 
    url = "https://www.bp.com/content/dam/bp/business-sites/en/global/corporate/xlsx/energy-economics/statistical-review/bp-stats-review-2021-all-data.xlsx",
  target_dir = "./"
)

Arguments

url

Url to latest BP World Energy Review Database. Latest known is provided as default. You can use guess_url() to guess the latest url.

target_dir

Directory where database is stored. Current directory is default.

Value

Name of feather file were final cleaned database is stored

Examples

download_clean_save_bp(guess_url(2021))

inwe-boku/irenabpdata documentation built on April 1, 2022, 11:55 p.m.