read_ph_iccs: Read-In and Clean the Philippines Inventory of Chemicals and...

View source: R/read_ph_iccs.R

read_ph_iccsR Documentation

Read-In and Clean the Philippines Inventory of Chemicals and Chemical Substances

Description

This function reads-in and automatically cleans the Philippines Inventory of Chemicals and Chemical Substances.

Usage

read_ph_iccs(path, clean_non_ascii = FALSE)

Arguments

path

(Character) The path to the iccs PDF file. Not used for emb20 or emb21.

clean_non_ascii

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

Details

This function reads-in and automatically cleans the Philippines Inventory of Chemicals and Chemical Substances.

Value

Returns a data frame.

Note

Tested with the 2017 version.

Author(s)

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

Examples

## Not run: 
download.file(
  url =
    "https://chemical.emb.gov.ph/wp-content/uploads/2020/07/PICCS.2017.pdf",
  destfile = "PICCS.2017.pdf"
)

path <- "PICCS.2017.pdf"

piccs <- read_ph_iccs(path)

## End(Not run)

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