CRAN Task View: Agricultural Science

Maintainer:Julia Piaskowski, Adam Sparks, Janet Williams
Contact:julia.piask at
Contributions:Suggestions and improvements for this task view are very welcome and can be made through issues or pull requests on GitHub or via e-mail to the maintainer address. For further details see the Contributing guide.
Citation:Julia Piaskowski, Adam Sparks, Janet Williams (2022). CRAN Task View: Agricultural Science. Version 2022-09-29. URL
Installation:The packages from this task view can be installed automatically using the ctv package. For example, ctv::install.views("Agriculture", coreOnly = TRUE) installs all the core packages or ctv::update.views("Agriculture") installs all packages that are not yet installed and up-to-date. See the CRAN Task View Initiative for more details.

Agriculture encompasses a broad breadth of disciplines. Many packages in base R and contributed packages are useful to agricultural researchers. For that reason, this is not an exhaustive list of all packages useful to agricultural research. This CRAN task view is intended to cover major packages that in most cases, have been developed to support agricultural research and analytical needs.

Note that some of these packages are on CRAN and others are on GitHub, Bioconductor, or R-Forge.

If you think that a package is missing from this list, please let us know through issues or pull requests in the GitHub repository, or via e-mail.

Table of contents

Packages with general applications

Agricultural & land use databases

Agricultural data sets

Many of the agriculture-focused packages listed in this guide also include data sets to illustrate their functionality (e.g. agricolae, AgroTech, BGLR).

General analytical packages supporting agricultural research

Discipline-specific packages

Agricultural economics

The task views for Econometrics, (Empirical) Finance, and TimeSeries provide information on packages and tools relevant to agriculture economics.


The Hydrology has many resources for accessing and processing weather and climate data.

Agronomic trials

Experimental design

The task view for ExperimentalDesign provide additional information on experimental design for a wide variety of research problems.

High throughput phenotyping (HTP)

Trial analysis

Animal science

Breeding & quantitative genetics

See the R package repository Bioconductor for bioinformatic tools to support the processing of high-throughput genomic data.

Linkage mapping & QTL analysis

GWAS (Genome Wide Association Studies)

Genomic prediction

Crop growth models & crop modelling


Food science

Genotype-by-environment interactions

Plant pathology

Rural sociology

Soil science and precision agriculture

Weed science

For ecological studies and analytical applications, the Environmetrics task view provides a list of existing R resources in this topic.

CRAN packages

Core:AGHmatrix, agricolae, agridat, apsimx, aqp, cdlTools, drc, DSSAT, FedData, inti, meteor, nlraa, qtl, sommer, tidyUSDA.
Regular:acdcR, ag5Tools, AGPRIS, agricolaeplotr, agrifeature, agriTutorial, agroclim, AgroR, AgroReg, agrostab, AgroTech, AlphaSimR, ALUES, ascotraceR, ASMap, asremlPlus, bayesammi, BGGE, BGLR, bigleaf, biotools, BMTME, bravo, BWGS, ClimMobTools, coxme, cropdatape, cropDemand, CropDetectR, cropgrowdays, CropScapeR, cropZoning, desplot, DMMF, eemdTDNN, epifitter, Evapotranspiration, FAOSTAT, febr, FielDHub, FWRGB, gge, gosset, gpbStat, grapesAgri1, GSelection, GSMX, hagis, heritability, hnp, IBCF.MTME, ispd, isqg, KenSyn, kinship2, landsepi, LinkageMapView, lmDiallel, LW1949, LWFBrook90R, mappoly, mapsRinteractive, metan, metrica, mlmm.gwas, mpspline2, mvngGrAd, NutrienTrackeR, onemap, pedigree, pedigreemm, pedmod, pedometrics, pergola, PesticideLoadIndicator, pestr, PGRdup, photosynthesis, plantecophys, pliman, polymapR, polyqtlR, poppr, PROSPER, qgg, qgtools, QI, qtlpoly, QTLRel, rapsimng, rarms, Recocrop, resevol, rfieldclimate, rMVP, rnassqs, rPAex, Rquefts, rrBLUP, rusda, Rwofost, selection.index, sharpshootR, smapr, soilassessment, soilDB, SoilR, SoilTaxonomy, soiltestcorr, SoilTesting, soiltexture, soilwater, sorcering, SoyNAM, SpATS, spFW, spsh, statgenGWAS, statgenGxE, statgenHTP, statgenIBD, statgenMPP, statgenSTA, STGS, stlELM, tealeaves, TSDFGS, usdampr, variability, WCM, ZeBook.

Other resources