filterField: Filter spatial vector data based on value

filterFieldR Documentation

Filter spatial vector data based on value

Description

This function filters spatial vector data based on trait value.

Usage

filterField(
  field,
  shape = NULL,
  trait = NULL,
  value = NULL,
  cropAbove = NULL,
  cex = 1
)

Arguments

field

SpatVector. The field to be filtered.

shape

a specific area inside the field to be filtered. If shape=NULL, all field data will be used for filtering.

trait

a vector of the traits to be used as filter criteria.

value

threshold value to filter the trait data (must be numeric).

cropAbove

if TRUE all data above the 'value' will be retained. if FALSE all data below the 'value' will be retained.

cex

point size. Please check help("points").

Details

filterField

Value

the filtered SpatVector.


filipematias23/cleanRfield documentation built on Aug. 6, 2023, 12:26 a.m.