create.test.index.blockCV: Create resampling index for test data using blockCV

View source: R/spatialfuncs.R

create.test.index.blockCVR Documentation

Create resampling index for test data using blockCV

Description

This function provides resamples for test data to be used in evaluate or ROCcurve The resamples are based in the blocks created by spatialBlock.

Usage

create.test.index.blockCV(speciesData, sb)

Arguments

speciesData

A spatialPoints or spatialPointsDataFrame with the locations for each test data.

sb

A spatialBlock object.

Details

The folds of each block are assigned to the test data based on their location. If a point does not fall over any block, then the fold of the block closest to that point is assigned, with a warning.

For each resample, all folds except one are used, and this is done for each fold.

The order of points in the spatialPoints object must be the same from the data.frame used for the test data.

Value

A list of test data index to be used in each resampling.

See Also

Other spatial: blockCV2fold(), blockENM2fold()


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