disData: Get disdat datasets

View source: R/disdata.R

disDataR Documentation

Get disdat datasets

Description

disPo returns the presence-only (po) data for a region

disBg returns the background (bg) data for a region

disPa returns the presence-absence (pa) data for a region and group

disEnv returns the environmental (env) data for sites matching those in the pa data, for a region and group

disData returns a list with all data for a region.

disBorder returns a polygon for one of the regions.

Usage

disData(region)

disPo(region)

disBg(region)

disPa(region, group)

disEnv(region, group)

disBorder(region, pkg="sf")

Arguments

region

character. One of "AWT", "CAN", "NSW", "NZ", "SA", "SWI"

group

character. If region is "NSW", one of "ba", "db", "nb", "ot", "ou", "rt", "ru", "sr". region is "AWT" "bird", "plant". The other regions each have only one group, so group should not be specified

pkg

character. Either "sf" or "terra" to get polygons as defined by that package

Details

disData returns a list with env, pa, bg and po data in that order. For regions with more than one group, the testing data (env and pa) will come from different surveys, and the model testing should be targeted to the relevant group. The first column of the env and pa data.frames is "group", which can be used to extract the correct data.

Value

data.frame (disPo, disBg, disPa and disEnv) or list with four data.frames (disData)

Examples

awt_po <- disPo("AWT")

awt_bg <- disBg("AWT")

awt_pa_plants <- disPa("AWT", "plant")

awt_env_plants <- disEnv("AWT", "plant")


x <- disData("NSW")

names(x)

sapply(x, head)


z <- disBorder("NSW")

plot(z)


rspatial/disdat documentation built on Feb. 14, 2023, 4:27 a.m.