gmba_kbapa: Filter the GMBA KBA/PA master file

View source: R/gmba_kbapa.R

gmba_kbapaR Documentation

Filter the GMBA KBA/PA master file

Description

Filter the results from the GMBA results on PA coverage of mountain KBAs. Currently for internal use only.

Usage

gmba_kbapa(fileobject, filteroptions)

Arguments

fileobject

Name of the master file object in the R studio environment, without quotes

filteroptions

List of vectors of character strings containing the options to filter, in the format list(c("variable", "filterterm"), ...). The filter vectors are applied in the order given. The variable "ResultValue" can not be filtered. Variables that can be filtered: "ID", "ID_underscore", "Year", "UnitOfAnalysis", "Landscape", "Country", "Mountain", "Name", "Metric", "Definition", "Calculation", "Unit", and "FilterString". For variables "Name" and "Metric", pattern matching is used, using grepl( ).

Value

Dataframe filtered from given master file object

Examples

## Not run: 
 waffledata <- gmba_kbapa(fulldata, list(c("UnitOfAnalysis", "Country"), c("Country", "CHE")))

## End(Not run)

GMBA-biodiversity/gmbaR documentation built on Feb. 13, 2025, 8:44 a.m.