Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed Sep 8, 2023
1 parent c555306 commit 5b8ef7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/utils_labels.R
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
value_labels <- c(value_labels, stats::setNames(missing_levels, missing_levels))

# now we can add back levels
levels(x) <- names(value_labels)[order(value_labels)]
levels(x) <- names(value_labels)[order(as.numeric(value_labels))]
attr(x, "labels") <- NULL

x
Expand Down

0 comments on commit 5b8ef7e

Please sign in to comment.