Skip to content

fixed rownames in CsubsetDT when irows==NULL - #3218

Merged
mattdowle merged 2 commits into
masterfrom
subset3
Dec 14, 2018
Merged

mattdowle merged 2 commits into
masterfrom
subset3

Conversation

@mattdowle

Copy link
Copy Markdown
Member

Closes #3216
Closes #3217

I had added irows=NULL ability (all rows) to CsubsetDT but that made the rownames attribute c(NA, 0) since length(irows) was 0. Should have been c(NA, -n).
There were tests for DT[,-"col"] but they compared to a DT[, otherCols] result. rownames became missing on both sides, so the tests still passed.

@mattdowle mattdowle added this to the 1.12.0 milestone Dec 14, 2018
@codecov

codecov Bot commented Dec 14, 2018 •

Copy link
Copy Markdown

Codecov Report

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

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3218      +/-   ##
==========================================
+ Coverage   94.59%   94.59%   +<.01%     
==========================================
  Files          61       61              
  Lines       11735    11736       +1     
==========================================
+ Hits        11101    11102       +1     
  Misses        634      634
Impacted Files Coverage Δ
src/subset.c 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 5b16cc5...7f165fb. Read the comment docs.

@mattdowle
mattdowle merged commit 550b8a7 into master Dec 14, 2018
@mattdowle
mattdowle deleted the subset3 branch December 14, 2018 09:05
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.

2 participants