Skip to content

Odd parameter names of setnames #4041

@Kodiologist

Description

@Kodiologist

If you call setnames with just a vector of new names, then it looks like setnames(df, c("date", "place", "value")), which is fine. But if you name the argument supplying the new names, then the call looks like setnames(old = c("date", "place", "value"), df), which is confusing because you're supplying new names, not old ones. Consider allowing old to be missing, so new can be set by name instead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions