Skip to content

Describe "dot dot prefix" in help text, FAQ and vignette #2145

@Henrik-P

Description

@Henrik-P

In New Features for 1.10.2 the .. prefix is introduced. However, it is not mentioned in ?data.table.

Furthermore, if you do a mistake in your subsetting, as examplified e.g. in this nice answer, an informative error message is generated:

Error in [.data.table(DT, , myCols) :
j (the 2nd argument inside [...]) is a single symbol but column name 'myCols' is not found. Perhaps you intended DT[,..myCols] or DT[,myCols,with=FALSE]. This difference to data.frame is deliberate and explained in FAQ 1.1.

From the error message one could easily get the impression that .. is explained in FAQ 1.1. But it's not.

In the release notes it says that .. "is experimental", so perhaps this omission is intentional? Still, I think this feature deserves to be described in the help text and FAQ (and in the vignette), possibly with an "experimental" reservation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions