This R package provides convenient access to data extracted from some of the spreadsheet files made available as OpenFoodTox, the chemical hazards database of the European Food Safety Authority (EFSA). The original files have been published under the Creative Commons Attribution 4.0 International licence and can be accessed via the EFSA website or directly at Zenodo.
The core component of the package is the data object oft, which contains the
data from four OpenFoodTox spreadsheets which are currently relevant for our
group at Agroscope. These are the spreadsheets on substance characterisation,
EFSA outputs, reference points and reference values.
When using this R package, the data are available in the form of
a dm object. Basically, a
dm object is a list of tables with defined relations.
The online documentation is available on github.
A graphical representation of these tables and their relations and some
usage examples are shown in the
documentation of the oft object.
In addition, there is a
package vignette on the oft object,
describing the contents of the individual tables.
For further information on relational data models as implemented in the
dm package, please refer to its
online documentation.
install.packages("OpenFoodTox", repos = c("https://agroscope-ch.r-universe.dev", "https://cran.r-project.org"))You can then load the package in R using
library(OpenFoodTox)
to have the data object oft available.