split_data: SPLIT OCCURRENCES FOR CROSS-VALIDATION FUNCTION

View source: R/split_data.R

split_dataR Documentation

SPLIT OCCURRENCES FOR CROSS-VALIDATION FUNCTION

Description

Samples pseudo-absences from a environmental extent based on euclidean distances to the observations in a environmental PCA

Usage

split_data(
  Obs,
  spsNames = NULL,
  method = c("Euclidean", "kmeans"),
  split.percentage = 0.25
)

Arguments

Obs

a nx3 data.frame class object indicating longitud, latitud and species in the three first columns

spsNames

Species names to split occurrences from

method

Method used to split occurrences. Default is "Euclidean"

split.percentage

split percentage between train adn test data. Default is 0.25

Details

Returns an error if filename does not exist.

Value

List

Examples

## Not run: 
accident_2015 <- fars_read("Project/data/accident_2015.csv.bz2")

## End(Not run)



agarciaEE/NINA documentation built on Jan. 9, 2025, 10:09 a.m.