Skip to content
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

correct ordered factor definition #1686

Merged
merged 4 commits into from
Sep 27, 2024
Merged

correct ordered factor definition #1686

merged 4 commits into from
Sep 27, 2024

Conversation

leorjorge
Copy link
Contributor

Following discussion in #1122 , clarifies that ordered factors do not behave like numbers.

Following discussion in hadley#1122 , clarifying that ordered factors do not behave like numbers.
@leorjorge
Copy link
Contributor Author

To clarify, this PR attempts to correct the obvious errors: the definition and the typo.

I kept the more opinionated part discouraging people from using ordered factors, even if I don't really agree with it and they are quite important at least in the social sciences (and ecology to a lesser extent). In my experience with ecological data, they're used less often than they should, with people just treating these as either numeric variables or regular factors to avoid the use of more complicated models.

factors.qmd Outdated Show resolved Hide resolved
@hadley hadley merged commit 3e8bf23 into hadley:main Sep 27, 2024
1 check passed
@hadley
Copy link
Owner

hadley commented Sep 27, 2024

Thanks!

@leorjorge leorjorge deleted the patch-1 branch September 27, 2024 12:53
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