check_splits_balance {tidysdm} | R Documentation |
Check the balance of presences vs pseudoabsences among splits
Description
Check the balance of presences vs pseudoabsences among splits
Usage
check_splits_balance(splits, .col)
Arguments
splits |
the data splits (an |
.col |
the column containing the presences |
Value
a tibble of the number of presences and pseudoabsences in the assessment and analysis set of each split (or training and testing in an initial split)
Examples
lacerta_thin <- readRDS(system.file("extdata/lacerta_climate_sf.RDS",
package = "tidysdm"
))
lacerta_cv <- spatial_block_cv(lacerta_thin, v = 5)
check_splits_balance(lacerta_cv, class)
[Package tidysdm version 0.9.5 Index]