desv_clim: Auxiliary function for calculating ISGR

View source: R/isgr_index.R

desv_climR Documentation

Auxiliary function for calculating ISGR

Description

This function receives a dataframe with temperature and precipitation data and calculates the standard deviation of these parameters for each environment.

Usage

desv_clim(ENV, AAT, PREC)

Arguments

ENV

Identification of each selection environment (to differentiate if there is more than one cultivation cycle).

AAT

Average air temperature (in degree Celsius) during the cycle in each environment.

PREC

Rainfall (in mm) during the cultivation cycle in each environment

Value

A dataframe containing the identifier of the selection environment and the standard deviations for temperature and precipitation.

Author(s)

Willyan Junior Adorian Bandeira

Ivan Ricardo Carvalho

Murilo Vieira Loro

Leonardo Cesar Pradebon

Jose Antonio Gonzalez da Silva

Examples

library(EstimateBreed)
data("desvamb")
head(desvamb)

#Use DPclim for the ISGR function to identify deviations correctly
DPclim <- with(desvamb,desv_clim(ENV,TMED,PREC))

EstimateBreed documentation built on April 4, 2025, 5:37 a.m.