Learn R Programming

forestChange (version 1.0)

FCMosaic: Forest-Change Mosaic

Description

This function tests whether adjacent layers of GFC can be bounded together using partial matching over the layer names. If it is possible then mosaic is implemented.

Usage

FCMosaic(rst = NULL, lyrs = c("treecover2000", "lossyear"), mc.cores = detectCores())

Arguments

rst

list or NULL. List of GFC layers. If NULL then other arguments are ignored and the function returns NULL.

lyrs

character. Vector of strings matching layer names in GFC data. Defaults 'treecover2000' and 'lossyear'.

mc.cores

logical. Use parallel execution. Default TRUE. Ignored in Windows machines.

Value

list of rasters.

Details

The function is implemented by FCPolygon to cut GFC data.

Examples

Run this code
# NOT RUN {
## Printing NULL output:    
FCMosaic(NULL)
# }

Run the code above in your browser using DataLab