-
Notifications
You must be signed in to change notification settings - Fork 1k
Open up factor support in nafill #7539
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #7539 +/- ##
=======================================
Coverage 98.97% 98.97%
=======================================
Files 87 87
Lines 16733 16739 +6
=======================================
+ Hits 16561 16567 +6
Misses 172 172 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Generated via commit bc87775 Download link for the artifact containing the test results: ↓ atime-results.zip
|
fd689ba to
c8693ef
Compare
This comment was marked as outdated.
This comment was marked as outdated.
| if (!isNull(ATTRIB(VECTOR_ELT(x, i)))) | ||
| copyMostAttrib(VECTOR_ELT(x, i), VECTOR_ELT(ans, i)); | ||
| SEXP xi = VECTOR_ELT(x, i); | ||
| if (!isNull(ATTRIB(xi))) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| if (!isNull(ATTRIB(xi))) { | |
| if (ANY_ATTRIB(ATTRIB(xi))) { |
probably should go after #7487 for the backport of R < 4.5.0

Another easy win for #3992.
The only difficulty is ensuring that if
fillis set to something outsidelevels(x), the output is a well-formed factor.coerceAs()already has some logic to that effect, we've just got to take care & actually use it.