CDL_reclass: Reclassify land use raster

View source: R/CDL_reclass.R

CDL_reclassR Documentation

Reclassify land use raster

Description

Reclassify land use (e.g. Crop Data Layer) raster by supplied matrix with option to calculate mean of new raster

Usage

CDL_reclass(
  rasterpath,
  reclasstable,
  from,
  to,
  writerast = F,
  outpath,
  meanreclass
)

Arguments

rasterpath

file path of land use raster file

reclasstable

R data frame of reclass table

from

column in reclass table with land use raster values (e.g. CDL values from 1 to 254)

to

column in reclass table with new values (e.g. pesticide index of each land use)

writerast

logical, should write file of reclassified raster?

outpath

if writerast is TRUE, path name where reclass raster should be written

meanreclass

logical, return mean value of reclassified raster

Examples

'CDL_reclass' example forthcoming.

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