Skip to content

group varying factor levels fixed - #3906

Merged
mattdowle merged 3 commits into
masterfrom
melt_factor
Sep 24, 2019
Merged

mattdowle merged 3 commits into
masterfrom
melt_factor

Conversation

@mattdowle

Copy link
Copy Markdown
Member

Closes #2199
Closes #2522

@mattdowle mattdowle added this to the 1.12.4 milestone Sep 24, 2019
@codecov

codecov Bot commented Sep 24, 2019 •

Copy link
Copy Markdown

Codecov Report

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

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3906      +/-   ##
==========================================
+ Coverage   99.42%   99.43%   +<.01%     
==========================================
  Files          72       72              
  Lines       13502    13548      +46     
==========================================
+ Hits        13425    13471      +46     
  Misses         77       77
Impacted Files Coverage Δ
src/assign.c 100% <100%> (ø) ⬆️
src/dogroups.c 96.96% <100%> (-0.01%) ⬇️

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 d99b8ae...0569fcf. Read the comment docs.

Comment thread src/assign.c
const bool sourceIsFactor=isFactor(source), targetIsFactor=isFactor(target);
if (sourceIsFactor && targetIsFactor) {
// TODO: ^^ could be || in future; assign is already handling that so leave that for now. Then move more of assign to call here.
if (!sourceIsFactor || !targetIsFactor) {

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.

this is always false, maybe just wrapping into /* ... */ instead?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

it's there for the future when the todo in that comment is done

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.

make sense, but could be commented out code block too.
would be good to have a followup issue and link it from there

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

It could be but I'd prefer not to. Ok?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Of all the lines in this PR, this is the least significant to pick up on.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants