read_au_ici: Read-In and Clean the Australia Industrial Chemicals...

View source: R/read_au_ici.R

read_au_iciR Documentation

Read-In and Clean the Australia Industrial Chemicals Inventory

Description

This function reads-in and automatically cleans the Australia Industrial Chemicals Inventory.

Usage

read_au_ici(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

This function reads-in and automatically cleans the Australia Industrial Chemicals Inventory.

Value

Returns a data frame.

Note

Tested with the 10 February 2022 version.

Author(s)

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

Examples

## Not run: 
download.file(
  url = paste(
    "https://www.industrialchemicals.gov.au/sites/default/files/2022-03",
    paste(
      "Full%20list%20of%20chemicals%20on%20the%20Inventory%20",
      "%2010%20February%202022.XLSX",
      sep = "-"
    ),
  sep = "/"
  ),
  destfile = paste(
    "Full list of chemicals on the Inventory",
    "10 February 2022.xlsx",
    sep = " - "
  )
)

path <- "Full list of chemicals on the Inventory - 10 February 2022.xlsx"

ici <- read_au_ici(path)

## End(Not run)

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