read_eu_clp: Read-In and Clean the ECHA CLP Annex VI Data Set

View source: R/read_eu_clp.R

read_eu_clpR Documentation

Read-In and Clean the ECHA CLP Annex VI Data Set

Description

This function reads-in and automatically cleans the ECHA CLP Annex VI data set.

Usage

read_eu_clp(path, clean_non_ascii = FALSE)

Arguments

path

(Character) The path to the XLSX 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 CLP Annex VI data set into long flat format.

Value

Returns a data frame.

Note

Tested with "atp" versions 9, 10, 13, 14, 15, and 17.

Author(s)

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

Examples

## Not run: 
download.file(
  url = paste0(
    "https://echa.europa.eu/documents/10162/17218/",
    "annex_vi_clp_table_atp17_en.xlsx/",
    "4dcec79c-f277-ed68-5e1b-d435900dbe34?t=1638888918944"
  ),
  destfile = "annex_vi_clp_table_atp17_en.xlsx"
)

path <- "annex_vi_clp_table_atp17_en.xlsx"

clp <- read_eu_clp(path)

## End(Not run)

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