Learn R Programming

pacu: Precision Agriculture Computational Utilities

The pacu package allows for processing, visualization, and analysis of yield monitor data. Additionally, this package also allows for retrieval, processing, and visualization of weather and satellite data.

Installation

pacu is available on CRAN. To install pacu, you can run:

install.packages("pacu")

To install the development version from github you can try:

devtools::install_github("cldossantos/pacu")
library(pacu)

or you can also try the lightweight 'remotes' package:

remotes::install_github("cldossantos/pacu")
library(pacu)

The vignettes are not automatically built when the package is installed from github. To get started with pacu, you can build the vignettes and check the examples we provide.

devtools::install_github("cldossantos/pacu", build_vignettes = TRUE)
browseVignettes(package = 'pacu')

or you can use the lightweight 'remotes' package:

remotes::install_github("cldossantos/pacu", build_vignettes = TRUE)
browseVignettes(package = 'pacu')

Package requirements

Imported packages: stars, XML, gstat, units, sf, apsimx, tmap, httr, jsonlite

Suggested packages: spData, knitr, mgcv, concaveman, rmarkdown, ggplot2, patchwork, nasapower, testthat

Manuscript

You can find the manuscript describing pacu here

Copy Link

Version

Install

install.packages('pacu')

Monthly Downloads

220

Version

0.1.74

License

GPL (>= 3)

Maintainer

dos Santos Caio

Last Published

November 19th, 2025

Functions in pacu (0.1.74)

merge

Merge trial objects
pacu.options

Environment which stores PACU options
pacu_options

Setting some options for the package
pa_2utm

Reproject a sf object to UTM coordinates
pa_adjust_obs_effective_area

Adjust the effective area of each observation based on vehicular polygon overlap
pa_download_dataspace

Download satellite products from the Copernicus Data Space Ecosystem
pa_compute_vi

Compute vegetation indices from a zipped Sentinel 2 file
pa_browse_dataspace

Browse satellite products from the Copernicus Data Space Ecosystem
pa_get_vi_stats

Request vegetation index statistics from the Data Space Statistics API
pa_cardinal_dates

Predict cardinal dates from satellite image data
pa_check_yield

Check the yield data before processing with the pa_yield function
pa_get_rgb

Retrieve an RGB image from a zipped Sentinel 2 file
pa_apportion_mass

Impose a regular grid over yield polygons
pa_make_vehicle_polygons

Make vehicular polygons for yield monitor observations
print

Print a pacu object
pa_get_weather_sf

Downloads a met file using the apsimx package
pa_initialize_dataspace

Register the Data Space credentials to the R environment
pa_trial

EXPERIMENTAL FUNCTION - Create an interpolated trial object from as-applied data
pa_plot

Create a plot from a pacu object
summary

Produce result summaries of the various pacu objects
pa_initialize_oauth

Register the Oauth2.0 credentials to the R environment
pa_yield

Create an interpolated yield object from raw data