Skip to content

Commit

Permalink
Update R/select_nse.R
Browse files Browse the repository at this point in the history
Co-authored-by: Etienne Bacher <[email protected]>
  • Loading branch information
strengejacke and etiennebacher authored Jun 7, 2024
1 parent e6582b5 commit 021af1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/select_nse.R
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
if (!is.null(new_names) && !is.null(names(new_names))) {
# if so, copy names
all_names <- names(new_names)
# if some of the element don't have a name, we set the value as name
# if some of the elements don't have a name, we set the value as name
names(new_names)[!nzchar(all_names)] <- new_names[!nzchar(all_names)]
# after inclusion and exclusion, the original values in "select"
# may have changed, so we check that we only add names of valid values
Expand Down

0 comments on commit 021af1c

Please sign in to comment.