Skip to content

must.include returns repeated indices #25

@FeikovZ

Description

@FeikovZ

Including a must.include condition to clhs sampling returns an array with a duplicate index. If this is not a bug, but me misreading instruction, I'd suggest clarifying this in the documentation.

A reproducable example using the mtcars R dataset below:

calIndices <- clhs(mtcars, size = ceiling(0.8 * nrow(mtcars)), must.include = c(which(mtcars$qsec == min(mtcars$qsec)),which(mtcars$qsec == max(mtcars$qsec))))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions