calculateGATflag: Calculate GAT Flag

View source: R/calculateGATflag.R

calculateGATflagR Documentation

Calculate GAT Flag

Description

This function cleans up the code to update the flag variable based on exclusion criteria.

Usage

calculateGATflag(exclist, d)

Arguments

exclist

The vector of settings to use, including variable names "var1", "var2", "var3", the criteria "math1", "math2", "math3", and the numeric values "val1", "val2", "val3".

d

The dataset containing the flag and exclusion variables.

Examples

exclist <- list(
  var1 = "TOTAL_POP",
  math1 = "less than",
  val1 = 500,
  var2 = "NONE", # if not "NONE", define math2 & val2
  var3 = "NONE"  # if not "NONE", define math3 & val3
)

calculateGATflag(exclist = exclist, d = hftown)


ajstamm/gatpkg documentation built on Nov. 23, 2023, 9:44 a.m.