landcomp | R Documentation |
Calculate landscape composition (pct of each land cover type)
landcomp(
landdir = T,
landfiles,
writeoutput = T,
outfile,
attr_path = NA,
attr_value,
background = F,
bgvalues = -1000
)
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 |
This function can be used to calculate the number of cells and pct area covered for any categorical raster.
Usage example coming soon.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.