totPresRules: Get the total number of dominant presence rules in the...

Description Usage Arguments Details Value Examples

View source: R/totPresRules.R

Description

totPresRules Get the total number of dominant presence rules in the ruleset file

Usage

1
totPresRules(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

While specifying the file element, include both the path and the full file name, otherwise, set the directory to the rulesets file before running the function.

Value

A number of the total number of dominant presence rules.

Examples

1
2
3
4
5
## Not run: 
PreNo <- totPresRules(file = "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.