CDL_reclass | R Documentation |
Reclassify land use (e.g. Crop Data Layer) raster by supplied matrix with option to calculate mean of new raster
CDL_reclass(
rasterpath,
reclasstable,
from,
to,
writerast = F,
outpath,
meanreclass
)
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 |
'CDL_reclass' example forthcoming.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.