Skip to content

Commit

Permalink
Thrown out CVA
Browse files Browse the repository at this point in the history
  • Loading branch information
KonstiDE committed Jan 15, 2024
1 parent 1763d2d commit bf4e86c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,4 @@ LinkingTo: Rcpp,
RcppArmadillo
License: GPL (>=3)
RoxygenNote: 7.2.3
LazyData: true
4 changes: 3 additions & 1 deletion R/rasterCVA.R
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,16 @@
#' @return
#' Returns a SpatRaster with two layers: change vector angle and change vector magnitude
#' @export
#' @examples
#' @examples
#' \dontrun{
#' library(terra)
#' pca <- rasterPCA(lsat)$map
#'
#' ## Do change vector analysis
#' cva <- rasterCVA(pca[[1:2]], pca[[3:4]])
#' cva
#' plot(cva)
#' }
rasterCVA <- function(x, y, tmf = NULL, nct = NULL, ...) {
x <- .toTerra(x)
y <- .toTerra(y)
Expand Down
2 changes: 2 additions & 0 deletions man/rasterCVA.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit bf4e86c

Please sign in to comment.