detect_plastic: detect_plastic function

Description Usage Arguments Value Examples

View source: R/detect_plastic.R

Description

this function can be used to detect the type of plastic a given plastic should be characterized as based on the materials C, H, O, and Cl content. Various combinations of elemental content can result in a plastic type of PETE, PS, PP, PE, PVC, or other.

Usage

1
detect_plastic(C, H, O, Cl)

Arguments

C

- Carbon atoms present in the material

H

- Hydrogen atoms present in the material

O

- Oxygen atoms present in the material

Cl

- Chlorine atoms present in the material

Value

plastic type

Examples

1
detect_plastic(10,8,4,0) returns: [1] "PETE"

jaleisehall/rainbowtrout documentation built on March 22, 2021, 11:04 p.m.