extractRules: Pull rulesets created by GARP

Description Usage Arguments Details Value See Also Examples

View source: R/extractRules.R

Description

extractRules Extract the dominant range rules and logit rules for the best subset models

Usage

1
extractRules(file, table, pathA, pathB, project)

Arguments

file

file name or file path of the ".txt" file of rulesets generated by GARP

table

a data.frame object produced by findModRules that contains model numbers (ruleset number) and dominant rule number

pathA

file path to the directory containing environmental grids (must be in ESRI ASCII raster format)

pathB

file path to the directory for ruleset grids produced by GARP

project

logical; indicates if the GARP results are projected to the landscape

Details

Include both the path and the full file name in file, otherwise, set the directory to the rulesets file before running the function.

Value

Returns a data.frame containing the minimum and maximum values for the environmental variables in each rule, the type of rules, the model numbers (ruleset number) and rule numbers.

See Also

findModRules

Examples

1
2
3
4
5
## Not run: 
  rangelogit <- extractRules("C:/GARP/RuleSets.txt", table = modelRule,
  pathA = "C:/GARP/resampled/", pathB = "C:/GARP/runs/", project = FALSE)

## End(Not run)

cghaase/GARPTools documentation built on Aug. 6, 2021, 6:38 a.m.