calculatePixelsInaRule: Uses a set of rules to calculate how many non-NA pixels in a...

Description Usage Arguments Value Author(s)

View source: R/calculatePixelsInaRule.R

Description

Uses a set of rules to calculate how many non-NA pixels in a raster follow those rules, using a shapefile to subset those of interest

Usage

1
calculatePixelsInaRule(ras, rule, pol, shp, ...)

Arguments

ras

rasterLayer to calculate the n of pixels that follow a given rule

rule

character string of rule to determine which pixels should be computed

pol

numeric. Representation of the polygon of interest in 'pol' for the calculation

shp

shapefile indicating the different areas to subset the pixels to consider in the calculation

...

Additional arguments

Value

A list of the percent disturbance, total pixels not NA and how many pixels are disturbed according to the ruls

Author(s)

Tati Micheletti


tati-micheletti/usefulFuns documentation built on July 7, 2020, 3:19 p.m.