Skip to content

unclear error message in spatial_buffer_vfold_cv() #175

Description

@JosiahParry

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions