apply_distweight: Calculate distance weighted land cover

View source: R/apply_distweight.R

apply_distweightR Documentation

Calculate distance weighted land cover

Description

Apply 'distweight_lulc' function over several rasters to calculate distance weighted sum of raster classes.

Usage

apply_distweight(
  landdir = T,
  landfiles,
  forage_range,
  attr_path = NA,
  attr_value = NA
)

Arguments

landdir

Logical specifying if 'landfiles' is a directory

landfiles

Landscape raster files to process (path to directory or list of files)

forage_range

Mean foraging range of bee community of interest (determines shape of distance weighting curve)

attr_path

Path to .csv file of raster attribute table

attr_value

Column name in attribute table that specifies raster values

Details

Distance weighting is an exponential decline function with a maximum distance of 'forage_range' *2. See Lonsdorf et al (2009) for details. Land cover rasters must have a radius greater than 'forage_range'*2, but can be much larger (whole county). The raster used for distance weighting is cropped to radius of 'forage_range' times 2.

Examples

Usage example coming soon.

land-4-bees/beecoSp documentation built on March 19, 2024, 3:45 p.m.