sumRaster {patternize}R Documentation

This function sums the individual color pattern RasterLayes as obtained by the main patternize functions.

Description

This function sums the individual color pattern RasterLayes as obtained by the main patternize functions.

Usage

sumRaster(rList, IDlist, type)

Arguments

rList

List of RasterLayers or list of RasterLayers for each k-means cluster.

IDlist

List of sample IDs.

type

Type of rasterlist; 'RGB' or 'k' (result from RGB or k-means analysis, respectively).

Examples

data(rasterList_lanRGB)
IDlist <- c('BC0077','BC0071','BC0050','BC0049','BC0004')
summedRaster <- sumRaster(rasterList_lanRGB, IDlist, type = 'RGB')

data(rasterList_lanK)
IDlist <- c('BC0077','BC0071','BC0050','BC0049','BC0004')
summedRasterList <- sumRaster(rasterList_lanK, IDlist, type = 'k')


[Package patternize version 0.0.5 Index]