Learn R Programming

GapAnalysis (version 1.0.2)

ParamTest: Input Parameter Test

Description

Preforms a series of test to validation that input occurrence data and SDM meet require parameters

Usage

ParamTest(Occurrence_data, Raster)

Arguments

Occurrence_data

A data frame object with the species name, geographical coordinates, and type of records (G or H) for a given species

Raster

A raster object representing the species distribution model

Value

A list with two binary values

Examples

Run this code
# NOT RUN {
##Obtaining occurrences from example
data(CucurbitaData)
##Obtaining Raster_list
data(CucurbitaRasters)
##Run function
test <- ParamTest(Occurrence_data = CucurbitaData[CucurbitaData$taxon == "Cucurbita Cordata",],
                  Raster = CucurbitaRasters[[1]])
# }

Run the code above in your browser using DataLab