Learn R Programming

osc (version 1.0.0)

osc.buffer: Simple Buffer algorithm

Description

Simple buffer based on euclidean distance are created around all cells equal to one.

Usage

osc.buffer(input, width)

Arguments

input

Matrix or Raster containing 1 indicating a cluster, no NA values are allowed

width

Width of the buffer in cells

Value

Returns matrix or raster, depending on input, with 1 for cluster and -1 for surrounding buffer

Examples

Run this code
# NOT RUN {
data(landcover)
landcover[landcover[]>1] <- 0
plot(osc.buffer(landcover, 4))
# }

Run the code above in your browser using DataLab