Description find_* functions pull_* functions calculate_* function plot_* functions write_* function
The purexposure
package provides functions to pull data from California's
Pesticide Use Registry (PUR), as well as to calculate exposure to and
visualize active ingredients present in applied pesticides. Functions are
categorized into find_*
, pull_*
, calculate_*
,
plot_*
, and write_*
. These are the functions from each category:
find_
functions help with searches of PUR chemical, county, and
product codes.
find_chemical_codes
: Pull active ingredient chemical codes
from PUR Chemical Lookup Tables.
find_counties
: Find California county codes or names.
find_location_county
: Find the counties of addresses or
coordinates.
find_product_name
: Find Pesticide Product names and registration
numbers from PUR Product Lookup Tables.
pull_
functions facilitate downloading data from the CA Department
of Pesticide Regulation's website.
pull_raw_pur
: Pull raw PUR data by counties and years.
pull_clean_pur
: Pull cleaned PUR data by counties, years, and
active ingredients.
pull_product_table
: Pull PUR Product Tables for a vector of
years.
pull_spdf
: Pull section or township-level
SpatialPolygonsDataFrame for a county.
The calculate_exposure
function calculates exposure (in kg/m^2) to
applied pesticides for a given location, buffer extending from that location,
time period, and active ingredients.
plot_
functions help with visualizations of application.
plot_county_application
: Plot pesticide application by county,
summed by section or township.
plot_county_locations
: Plot county locations in California.
plot_exposure
: Plot exposure to applied pesticides at a
particular location.
plot_application_timeseries
: Plot time series of active
ingredients in applied pesticides.
plot_locations_exposure
: Plot exposure for multiple locations
in a given county.
The write_exposure
function calculates exposure for multiple locaitons
and writes out files (exposure values, meta data, and plots) to a specified
directory.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.