Skip to content

shuffle_within_groups is broken when length of vector is 1 #19

@kylebittinger

Description

@kylebittinger

Alternate implementation from the docs for sample():

resample <- function(x, ...) x[sample.int(length(x), ...)]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions