Skip to content

compare ordered factors in level order - #9

Open
buyan-kh wants to merge 1 commit into
Genentech:mainfrom
buyan-kh:fix/ordered-factor-ops
Open

buyan-kh wants to merge 1 commit into
Genentech:mainfrom
buyan-kh:fix/ordered-factor-ops

Conversation

@buyan-kh

@buyan-kh buyan-kh commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

fixes #8

<, <=, > and >= on an ordered factor column now compare by level position instead of the label text, so they match base r. comparing an unordered factor warns and gives na like base r does. min, max, range and table also follow the level order now.

added tests in tests/testthat/test-factor-order.R. the windows checks fail on main too, so those are not from this change.

@aboyounp-gne would you mind taking a look?

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.

ordered factor columns compare and sort as plain strings

1 participant