Skip to content

Add . and .. aliases to ?data.table#4408

Merged
mattdowle merged 6 commits intomasterfrom
dot-docs
Jun 22, 2021
Merged

Add . and .. aliases to ?data.table#4408
mattdowle merged 6 commits intomasterfrom
dot-docs

Conversation

@MichaelChirico
Copy link
Copy Markdown
Member

@MichaelChirico MichaelChirico commented Apr 30, 2020

Closes #4407
Closes #4385
Closes #2145 ( #4862 already closed the FAQ element and this PR refines FAQ 1.5 further )

@codecov
Copy link
Copy Markdown

codecov bot commented Apr 30, 2020

Codecov Report

❗ No coverage uploaded for pull request base (master@5440244). Click here to learn what that means.
The diff coverage is 100.00%.

❗ Current head 1610da7 differs from pull request most recent head e53ad07. Consider uploading reports for the commit e53ad07 to get more accurate results
Impacted file tree graph

@@            Coverage Diff            @@
##             master    #4408   +/-   ##
=========================================
  Coverage          ?   99.44%           
=========================================
  Files             ?       73           
  Lines             ?    14469           
  Branches          ?        0           
=========================================
  Hits              ?    14388           
  Misses            ?       81           
  Partials          ?        0           
Impacted Files Coverage Δ
R/data.table.R 99.94% <ø> (ø)
src/assign.c 99.70% <ø> (ø)
src/between.c 99.21% <ø> (ø)
src/bmerge.c 100.00% <ø> (ø)
src/chmatch.c 100.00% <ø> (ø)
src/cj.c 100.00% <ø> (ø)
src/coalesce.c 100.00% <ø> (ø)
src/dogroups.c 99.67% <ø> (ø)
src/fastmean.c 96.82% <ø> (ø)
src/fcast.c 100.00% <ø> (ø)
... and 62 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5440244...e53ad07. Read the comment docs.

@MichaelChirico
Copy link
Copy Markdown
Member Author

not sure how I changed coverage 🤔

@avimallu
Copy link
Copy Markdown
Contributor

I fancied checking earlier open issues, and came across #2145, which is currently partly covered already in ?data.table's examples as:

colNum = 2                     # to refer vars in `j` from the outside of data use `..` prefix
DT[, ..colNum]                 # same, equivalent to DT[, .SD, .SDcols=colNum]

It is also covered in the introduction vignette under the header Select columns named in a variable using the .. prefix.

Lastly, this PR adds the .. operator to the help text, effectively, so I feel that this PR should probably close that issue.

@mattdowle mattdowle merged commit 5295db2 into master Jun 22, 2021
@mattdowle mattdowle deleted the dot-docs branch June 22, 2021 01:48
mattdowle added a commit that referenced this pull request Jun 22, 2021
@jangorecki jangorecki modified the milestones: 1.14.9, 1.15.0 Oct 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

4 participants