Skip to content

Elements of an 's_group' should be atomic #32

Description

@basille

Simple example from the vignette:

singlegroup <- make_s_group(list(id = "TTP_058", month = 4))
str(singlegroup)

Which works as expected. However, I can also have vectors or lists of length >1 for each variable, e.g.:

singlegroup <- make_s_group(list(id = "TTP_058", month = list(a = 1, b = 2)))
str(singlegroup)

This also works with no error, but defeats the purpose of the individual identification. I think the structure should be stricter and only allow vectors of length 1 (or other things that can be coerced to a vector of length 1).

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