R/RcppExports.R

Defines functions .habConnRcpp

Documented in .habConnRcpp

# Generated by using Rcpp::compileAttributes() -> do not edit by hand
# Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393

#' Habitat connectivity engine (C++)
#'
#' Internal function, not intended to be called directly.
#' DESCRIPTION NEEDED.
#'
#' @param cost              Numeric vector of habitat cost (resistance) values
#'                          extracted from a raster cost map.
#'
#' @param patches           Numeric vector that have binary values (\code{0} and \code{1})
#'                          where ones corresponds to patch cells and zeroes to
#'                          non-habitat (i.e., matrix) cells.
#'
#' @param nrow              Number of rows in the raster cost/patch map.
#'
#' @param ncol              Number of columns in the raster cost/patch map.
#'
#' @author Sam Doctolero
#' @keywords internal
#' @rdname habConnRcpp
.habConnRcpp <- function(cost, patches, ncol, nrow) {
    .Call(`_grainscape_habConnRcpp`, cost, patches, ncol, nrow)
}

Try the grainscape package in your browser

Any scripts or data that you put into this service are public.

grainscape documentation built on April 20, 2023, 9:12 a.m.