Skip to content

Documentation: more explicit that j can be logical (when with=FALSE) #1978

@Henrik-P

Description

@Henrik-P

I stumbled over one of the highly informative error messages in data.table:

When with=FALSE, j-argument should be of type logical/character/integer indicating the columns to select.

However, the fact that j can be of type logical is not explicitly described in ?data.table.

From with:

When with=FALSE j is a character vector of column names, a numeric vector of column positions to select or of the form startcol:endcol

From j:

When with=FALSE, j can only be a vector of column names or positions to select

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