occ_randsplit: Split occurrences randomly in training and testing data

View source: R/short_helpers.R

occ_randsplitR Documentation

Split occurrences randomly in training and testing data

Description

occ_randsplit splits a set of occurrences to obtain training and testing data randomly.

Usage

occ_randsplit(data, train_proportion = 0.5)

Arguments

data

matrix or data.frame with the occurrences to be split. Columns may vary but species, longitude, and latitue are recommended.

train_proportion

(numeric) proportion (from 0 to 1) of data to be used as training occurrences. The remaining data will be used for testing. Default = 0.5.

Value

List with all occurrences (all), training occurrences (train), and testing (test) occurrences.


marlonecobos/ellipsenm documentation built on Oct. 18, 2023, 8:09 a.m.