pull_product_table: Pull PUR Product Table.

Description Usage Arguments Details Value Examples

View source: R/03-pull.R

Description

This function pulls a California Department of Pesticide Regulation Product Table for a vector of years.

Usage

1
pull_product_table(years, quiet = FALSE)

Arguments

years

A vector of four digit years in the range of 1990 to 2017.

quiet

TRUE / FALSE indicating whether you would like a message and progress bar printed for the product table that is downloaded. The default value is FALSE.

Details

Product tables are pulled by year from the CDPR's FTP server. Downloaded tables are saved in a temporary environment, which is deleted at the end of the current R session.

Value

A data frame with four columns:

prodno

Integer. The California Registration number for the pesticide product. This corresponds to the prodno column in a raw or cleaned PUR data set returned from pull_raw_pur or pull_clean_pur.

prodstat_ind

Character. An indication of product registration status:

  • A = Active

  • B = Inactive

  • C = Inactive, Not Renewed

  • D = Inactive, Voluntary Cancellation

  • E = Inactive, Cancellation

  • F = Inactive, Suspended

  • G = Inactive, Invalid Data

  • H = Active, Suspended

product_name

Character. The name of the product taken from the registered product label. May have been modified by DPR's Registration Branch to ensure uniqueness.

signlwrd_ind

Integer. The signal word printed on the front of the product label:

  • 1 = Danger (Poison)

  • 2 = Danger (Only)

  • 3 = Warning

  • 4 = Caution

  • 5 = None

year

Integer. Four digit year indicating the year for which data was pulled.

Examples

1
prod_95 <- pull_product_table(1995)

leighseverson/purexposure documentation built on Aug. 13, 2021, 6:34 p.m.