read_eu_eci: Read-In and Clean the ECHA EC Inventory Data Set

View source: R/read_eu_eci.R

read_eu_eciR Documentation

Read-In and Clean the ECHA EC Inventory Data Set

Description

This function reads-in and automatically cleans the ECHA EC data set.

Usage

read_eu_eci(path, clean_non_ascii = FALSE)

Arguments

path

(Character) The path to the CSV file.

clean_non_ascii

(Logical) Should the non-ASCII characters be reasonably converted? Defaults to FALSE.

Details

The function reads-in and cleans the ECHA EC data set into long flat format.

Value

Returns a data frame.

Note

Tested with the "version" of 2022-01-11.

Author(s)

Raoul Wolf (https://github.com/RaoulWolf/)

Examples

## Not run: 
download.file(
  url = paste0(
    "https://echa.europa.eu/documents/10162/17222/ec_inventory_en.csv/",
    "326d9adb-27ed-5460-a2da-4f651b81e4b3"
    ),
  destfile = "ec_inventory_en.csv"
)

path <- "ec_inventory_en.csv"

eci <- read_eu_eci(path)

## End(Not run)

RaoulWolf/cleanventory documentation built on Sept. 15, 2022, 4:25 a.m.