blockENM2fold: Create Spatial blocks using ENMeval

View source: R/spatialfuncs.R

blockENM2foldR Documentation

Create Spatial blocks using ENMeval

Description

Create Spatial blocks using ENMeval

Usage

blockENM2fold(
  method = "block",
  y,
  coords,
  presence.level = NULL,
  env = NULL,
  aggregation.factor = NULL
)

Arguments

method

One of 'block', 'check1', 'check2'. Check ENMeval documentation

y

A response factor

coords

Two-column data.frame or matrix of longitude and latitude, same order as y

presence.level

character. Value in y which represents presence. By default, the first level of y is considered presence.

env, aggregation.factor

used only for methods 'check1' and 'check2'

Value

A vector with folds to be used in trainControlSDM.

See Also

Other spatial: blockCV2fold(), create.test.index.blockCV()


correapvf/caretSDM documentation built on June 2, 2022, 8:29 a.m.