create_resistances: Estimates resistance rasters from binary feature raster.

Description Usage Arguments Author(s) Examples

View source: R/create_resistances.R

Description

This function produces a cost raster from a single value

Usage

1
2
3
4
5
6
create_resistances(
  x,
  feature_name = "layer",
  costs = c(2, 5, 10, 50, 100),
  symmetric = TRUE
)

Arguments

x

A base raster object from which to base others.

feature_name

The prefix for output files for this raster feature (default='layer').

costs

A vector of cost rasters to iterate across (default=c(2, 5, 10, 50, 100)).

symmetric

A flag indicating that costs out of as well as into features will be estimated.

Author(s)

Rodney J. Dyer rjdyer@vcu.edu

Examples

1
2
3
4
vals <- sample( c(0,1), size=49, replace=TRUE)
m <- matrix( vals, nrow=7)
r <- raster::raster( m )
create_resistances( r )

MarianaLag/Mlag documentation built on Feb. 13, 2020, 12:30 a.m.