Skip to content

Commit

Permalink
namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed Sep 8, 2023
1 parent d42c11e commit c555306
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 @@ -53,7 +53,7 @@
value_labels <- value_labels[value_labels %in% levels(x)]

# for levels that have no label, we just keep the original factor level
value_labels <- c(value_labels, setNames(missing_levels, missing_levels))
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)]
Expand Down

0 comments on commit c555306

Please sign in to comment.