Skip to content

Grouped resampling breaks with non-missing strata = NULL #485

@hfrick

Description

@hfrick

The default for strata is NULL but specifying it explicitly breaks check_grouped_strata().

library(rsample)

set.seed(11)
rs1 <- group_vfold_cv(warpbreaks, "tension")

rs1 <- group_vfold_cv(warpbreaks, "tension", strata = NULL)
#> Error in .subset2(x, i, exact = exact): attempt to select less than one element in get1index

Created on 2024-05-22 with reprex v2.1.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugan unexpected problem or unintended behavior

    Type

    No type
    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