Skip to content

Commit

Permalink
Update raster.kendall.R
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffreyevans committed Feb 29, 2024
1 parent fa48c3f commit 2ceebe8
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions R/raster.kendall.R
Original file line number Diff line number Diff line change
Expand Up @@ -45,18 +45,18 @@
#'
#' @examples
#' \donttest{
library(terra)

# note; nonsense example with n=9
r <- c(rast(system.file("ex/logo.tif", package="terra")),
rast(system.file("ex/logo.tif", package="terra")),
rast(system.file("ex/logo.tif", package="terra")))

# Calculate trend slope with p-value and confidence level(s)
# ("slope","intercept", "p.value","z.value", "LCI","UCI","tau")
k <- raster.kendall(r, method="none")
plot(k)
}
#' library(terra)
#'
#' # note; nonsense example with n=9
#' r <- c(rast(system.file("ex/logo.tif", package="terra")),
#' rast(system.file("ex/logo.tif", package="terra")),
#' rast(system.file("ex/logo.tif", package="terra")))
#'
#' # Calculate trend slope with p-value and confidence level(s)
#' # ("slope","intercept", "p.value","z.value", "LCI","UCI","tau")
#' k <- raster.kendall(r, method="none")
#' plot(k)
#' }
#'
#' @seealso \code{\link[zyp]{zyp.trend.vector}} for model details
#' @seealso \code{\link[terra]{app}} for available ... arguments
Expand Down

0 comments on commit 2ceebe8

Please sign in to comment.