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

Reorder grade levels without relabelling in s_count_occurrences_by_grade #1044

Merged
merged 4 commits into from
Aug 28, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
### Bug Fixes
* Fixed bug in `s_count_occurrences_by_grade` so that "missing" grade always appears as the final level.
* Fix bug in `analyze_vars_in_cols` when categorical data was used.
Melkiades marked this conversation as resolved.
Show resolved Hide resolved
* Fixed bug in `s_count_occurrences_by_grade` so that levels are not relabelled when reordering to account for "missing" grades.

### Miscellaneous
* Fix swapped descriptions for the `.N_row` and `.N_col` parameters.
Expand Down
8 changes: 4 additions & 4 deletions tests/testthat/_snaps/count_occurrences_by_grade.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,22 +108,22 @@
Output
$count_fraction
$count_fraction$`1`
[1] 0 0
[1] 2.0 0.2

$count_fraction$`2`
[1] 2.0 0.2

$count_fraction$`3`
[1] 2.0 0.2
[1] 1.0 0.1

$count_fraction$`4`
[1] 2.0 0.2
[1] 0 0

$count_fraction$`5`
[1] 0 0

$count_fraction$Missing
[1] 0 0
[1] 1.0 0.1



Expand Down
Loading