R/mkTrend.R

Defines functions mkTrend

Documented in mkTrend

#' @title Compute Mann-Kendall trend
#' @details rank correlation coefficient Tau
#' need raster and gimms package
#' @usage trend(file_in, p, prewhitening, method, filename)
#' @param input rasterstack
#' @param p, numeric, defaults to 0.001. Significance level to be tested
#' @param prewhitening,logical, If TRUE (default), pre-whitening is applied prior to the Mann-Kendall trend test.
#' @param method The prewhitening method to apply ("yuepilon", "zhang")
#' @param filename name and path of output files
#' @return rst_stau; geo-tiff data
#' @author HammerLe, Kleebaue
#' @export mkTrend

mkTrend <- function(input, p, prewhitening, method, filename){

   #compute significantTau for input files
    rst_stau = gimms::significantTau(x = input,
                                     p = p,
                                     prewhitening = prewhitening,
                                     method = method,
                                     filename = filename,
                                     overwrite=T)


}
marburg-open-courseware/beechForestDynamics documentation built on May 7, 2019, 3:14 p.m.