landcomp: Calculate landscape composition (pct of each land cover type)

View source: R/landcomp.R

landcompR Documentation

Calculate landscape composition (pct of each land cover type)

Description

Calculate landscape composition (pct of each land cover type)

Usage

landcomp(
  landdir = T,
  landfiles,
  writeoutput = T,
  outfile,
  attr_path = NA,
  attr_value,
  background = F,
  bgvalues = -1000
)

Arguments

landdir

Logical specifying if 'landfiles' is a directory

landfiles

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

writeoutput

Logical specifying if results should be written to .csv file

outfile

If writeoutput=T, path to .csv file to store results (including .csv filename)

attr_path

Path to .csv file of raster attribute table

attr_value

Column name in attribute table that specifies raster values

background

Logical, specify background value?

bgvalues

or NoData values to be excluded from total landscape area

Details

This function can be used to calculate the number of cells and pct area covered for any categorical raster.

Examples

Usage example coming soon.

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