Learn R Programming

climtrends (version 1.0.6)

GetInfoHomogenization: Useful info from an homogenization test

Description

GetInfoHomogenization calculates the SNHT or other method of homogenization and returns useful info such as the year of change, To value, adjust value and more.

Usage

GetInfoHomogenization(dataYearSeries=NA,refYearSeries=NA,nYears=20, diffFlag=TRUE,returnData=FALSE, homogenization=SNHTabsolute, levelSignificance=c(99,95),criticalValues=climtrends::SNHT.Critical.Values)

Arguments

dataYearSeries
dataframe with climate data
refYearSeries
dataframe with climate data (reference)
nYears
window of years to adjust
diffFlag
logical TRUE=difference, FALSE=ratio
returnData
logical TRUE=return the homogenization test data
homogenization
homogenization test
levelSignificance
level of significance
criticalValues
critical values for the homogenization test

Value

number of wet days.