raster_mode: Calculate mode for aggregating ESG rasters to coarser...

View source: R/raster_mode.R

raster_modeR Documentation

Calculate mode for aggregating ESG rasters to coarser resolution

Description

Calculate mode for aggregating ESG rasters to coarser resolution

Usage

raster_mode(x, na.rm = T)

Arguments

x

Vector of values pulled from a raster. Can be numeric, character, factor, logical.

na.rm

Logical. Omit NA values?

Value

Modal value of the inputs in same format as inputs. If multiple modes exist, returns the first appearing value of the set of modes.


annack84/STMdevelopment documentation built on April 12, 2024, 6:46 p.m.