View source: R/apply_distweight.R
apply_distweight | R Documentation |
Apply 'distweight_lulc' function over several rasters to calculate distance weighted sum of raster classes.
apply_distweight(
landdir = T,
landfiles,
forage_range,
attr_path = NA,
attr_value = NA
)
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 |
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.
Usage example coming soon.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.