pacu: Precision Agriculture Computational Utilities - FAQ

Specific vignettes

  1. Satellite data

  2. Weather data

  3. Yield monitor data

  4. Frequently asked questions

knitr::opts_chunk$set(echo = TRUE)
library(pacu)

FAQ

  1. The pa_yield() function expects an sf object but my data is in a ".csv" format. How should I proceed?

    The data in a csv format can be read into R as a data frame and, subsequently, converted into an sf object. See the example below. ```r x <- 40:45 y <- -90:-95 yield <- 100:105 dat <- data.frame(x = x, y = y, yield = yield) class(dat) ## data.frame

    dat <- sf::st_as_sf(dat, coords = c('x', 'y')) class(dat) ## sf and data.frame

    ```

  2. How do I silence warnings and messages within the package?

    To silence warnings and messages, you can use the pacu_options() function. r pacu_options(suppress.warnings = TRUE, suppress.messages = TRUE)



Try the pacu package in your browser

Any scripts or data that you put into this service are public.

pacu documentation built on June 8, 2025, 10:44 a.m.