Learn R Programming

srppp - R package to read XML dumps of the Swiss Register of Plant Protection Products

Description

Functions to generate data objects from XML versions of the Swiss Register of Plant Protection Products (SRPPP). An online version of the register can be accessed at https://www.psm.admin.ch/de/produkte. There is no guarantee of correspondence of the data read in using this package with that online version, or with the original registration documents. Also, the Federal Food Safety and Veterinary Office, coordinating the authorisation of plant protection products in Switzerland, does not answer requests regarding this package.

Installation from CRAN

install.packages("srppp")

Installation of the latest development code

install.packages("srppp",
  repos = c("https://agroscope-ch.r-universe.dev", "https://cran.r-project.org"))

Documentation

An online version of the documentation of the current development version of the package is available on github.

See also

You may also be interested in our agroscope-ch/srppphist package containing historical registration data starting from 2011. This package is generally updated each year after the first publication of the register as an XML file.

Copy Link

Version

Install

install.packages('srppp')

Monthly Downloads

149

Version

2.0.0

License

GPL (>= 3)

Maintainer

Johannes Ranke

Last Published

December 11th, 2025

Functions in srppp (2.0.0)

units_convertible_to_g_per_ha

Product application rate units convertible to grams active substance per hectare
get_descriptions

Get descriptions from a node with children that hold descriptions
get_grandparent_wNbr

Get W-Number from grandparent node
application_rate_g_per_ha

Calculate application rates for active ingredients
alternative_products

Find alternative products for all products containing certain active substances
srppp_xml_clean_product_names

Clean product names
srppp_xml_define_use_numbers

Define use identification numbers in an SRPPP read in from an XML file
srppp_dm

Create a dm object from an XML version of the Swiss Register of Plant Protection Products
resolve_cultures

Resolve culture specifications to their lowest hierarchical level
srppp_xml_get

Read an XML version of the Swiss Register of Plant Protection Products
get_use_nr

Get use number from parent node (indication information node)
srppp-package

srppp: Read the Swiss Register of Plant Protection Products
get_parent_wNbr

Get W-Number from parent node
get_great_grandparent_wNbr

Get W-Number from grandparent node
l_per_ha_is_water_volume

Use definitions where the rate in l/ha refers to the volume of the spraying solution
srppp_xml_get_ingredients

Get ingredients for all registered products described in an XML version of the Swiss Register of Plant Protection Products
srppp_xml_get_parallel_imports

Get Parallel Imports from an XML version of the Swiss Register of Plant Protection Products
description_table

Get a table of descriptions for a certain Meta Information Tag
srppp_xml_get_products

Get Products from an XML version of the Swiss Register of Plant Protection Products
build_culture_tree

Build a Culture Tree
srppp_xml_get_substances

Get substances from an XML version of the Swiss Register of Plant Protection Products
srppp_xml_get_uses

Get uses ('indications') for all products described in an XML version of the Swiss Register of Plant Protection Products
srppp_xml_url

URL of the XML version of the Swiss Register of Plant Protection Products