Learn R Programming

marinespeed (version 0.1.0)

get_background: Get background data

Description

get_background returns pre-generated background data.

Usage

get_background(type)

Arguments

type
character. Either "random" or "targetgroup".

Value

A dataframe with all background points.

Details

The targetgroup background was created by subsampling an average of 37 occurrence records (20000 in total) from each species in the dataset providing in essence the same sampling bias as the entire dataset.

See Also

get_fold_data get_occurrences get_folds

Examples

Run this code
## Not run: ------------------------------------
# random_bg <- get_background("random")
# plot(random_bg[,2:3], pch=".", main="random background")
# 
# targetgroup_bg <- get_background("targetgroup")
# plot(targetgroup_bg[,2:3], pch=".", main="targetgroup background")
## ---------------------------------------------

Run the code above in your browser using DataLab