I get the below purrr / rsplit error. I've tried a few values of buffer but am unsure what the error actually is in this case.
I suspect there's something wrong with the choice of buffer on this grid.
set.seed(0)
grid <- sf::st_make_grid(cellsize = c(1, 1), offset = c(0, 0), n = c(70, 100))
splits <-spatialsample::spatial_buffer_vfold_cv(
sf::st_sf(grid),
v = 5,
buffer = 100,
radius = NULL
)
Error in `purrr::map()`:
ℹ In index: 1.
Caused by error in `rsplit()`:
! At least one row should be selected for the analysis set.
I get the below purrr / rsplit error. I've tried a few values of
bufferbut am unsure what the error actually is in this case.I suspect there's something wrong with the choice of buffer on this grid.