FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

.SDcols accepts a function to filter on values by MichaelChirico · Pull Request #3991 · Rdatatable/data.table · GitHub

.SDcols accepts a function to filter on values - #3991

Merged
mattdowle merged 3 commits into
masterfrom
sdcols_fun
Dec 20, 2019
Merged

mattdowle merged 3 commits into
masterfrom
sdcols_fun

Conversation

Copy link
Copy Markdown
Member

Closes #3950

codecov Bot commented Oct 25, 2019
edited
Loading

Copy link
Copy Markdown

Codecov Report

Merging #3991 into master will increase coverage by <.01%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master    #3991      +/-   ##
==========================================
+ Coverage   99.41%   99.41%   +<.01%     
==========================================
  Files          72       72              
  Lines       13904    13909       +5     
==========================================
+ Hits        13823    13828       +5     
  Misses         81       81
Impacted Files Coverage Δ
R/data.table.R 100% <100%> (ø) ⬆️

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 751e851...4a724ca. Read the comment docs.

mattdowle added this to the 1.12.9 milestone Dec 20, 2019
mattdowle merged commit 39be78e into master Dec 20, 2019
mattdowle deleted the sdcols_fun branch December 20, 2019 07:34
jangorecki modified the milestones: 1.12.11, 1.12.9 May 26, 2020
Comment thread NEWS.md
# data.table::fcase 1.49 1.55 1.67 1.71 1.73 1.86 5
```

7. `.SDcols=is.numeric` now works; i.e., `SDcols=` accepts a function which is used to select the columns of `.SD`, [#3950](https://github.com/Rdatatable/data.table/issues/3950). Any function (even _ad hoc_) that returns scalar `TRUE`/`FALSE` for each column will do; e.g., `.SDcols=!is.character` will return _non_-character columns (_a la_ `Negate()`). Note that `patterns=` can still be used for filtering based on the column names.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

patterns= looks a bit misleading to me, looks like an argument of [, e.g. dt[i, lapply(.SD, mean), patterns="^x"].

mattdowle Jul 26, 2020
edited
Loading

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Good spot. I filed to #4642 to fix that.

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

.SDcols=function shorthand

4 participants


Back | FazBrowse Home | New Git URL