Feature/df explicit na factor level method#1493
Closed
shajoezhu wants to merge 9 commits into
Closed
Conversation
…ttern to df_explicit_na - factor_level_method: controls level ordering (sort_auto/sort_radix/data) sort_auto preserves original behaviour; sort_radix uses byte-order (ASCII) sort which is not locale-sensitive; data uses first-appearance order - factor_as_factor: when TRUE, re-encodes existing factor columns via factor_level_method (default FALSE preserves original behaviour) - factor_level_last_pattern: regex to move matching levels to end before na_level; NULL by default (no effect); only applies during re-encoding Closes #1322 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Move factor_as_factor/factor_level_method/factor_level_last_pattern after na_level to preserve positional call compatibility - Update @param order in roxygen and man/df_explicit_na.Rd accordingly - Replace match.arg() with checkmate::assert_choice() so error message matches test expectation and style is consistent with rest of file - Drop expect_false(identical(...)) test line that fails under LC_COLLATE=C (testthat edition 3 forces C locale in CI)
Contributor
Code Coverage SummaryDiff against mainResults for commit: b60d27f Minimum allowed coverage is ♻️ This comment has been updated with latest results |
Contributor
Unit Tests Summary 1 files 85 suites 1m 40s ⏱️ Results for commit b60d27f. ♻️ This comment has been updated with latest results. |
Contributor
Unit Test Performance DifferenceAdditional test case details
Results for commit 4c3ebec ♻️ This comment has been updated with latest results. |
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
see #1487
to trigger cicd checks