Learn R Programming

climatrends (version 0.5)

clima_data: Example of input data using local data

Description

Input example from disk data. See details

Arguments

Format

an array with two layers (temp_dat) a matrix (rain_dat), a data.frame (innlandet), a sf object (lonlatsf), a list ("commonbean")

Details

commonbean: a list with three data sets 1) on-farm variety performance data, 2) chirps data, and 3) modis data.

rain_dat: matrix with precipitation from CHIRPS. An excerpt to represent an example of the input data in rainfall() or

get_timeseries() when a matrix is provided.

rain_dat: matrix with precipitation from CHIRPS. An excerpt to represent an example of the input data in rainfall() or get_timeseries() when a matrix is provided.

innlandet: a data.frame with maximum and minimum temperature for a random point in the Innlandet county in Norway, spanning from "2019-01-01" to "2019-07-01"

lonlatsf: a 'sf' object with 'POINT' geometry with five random points around the municipality of Sinop, Brazil

temp_dat and rain_dat, rows represents the coordinates for the given lonlat provided in raster::extract() and colunms represents the dates from the observed precipitation/temperature.