Skip to content

Commit

Permalink
prefix setNames
Browse files Browse the repository at this point in the history
  • Loading branch information
larmarange committed Jan 2, 2025
1 parent 3b3e783 commit 4d90778
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion R/update_with.R
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ update_variable_labels_with.data.frame <- function(.data,

vl <- mapply(
function(variable, label) {
setNames(label, variable)
stats::setNames(label, variable)
},
names(vl),
vl,
Expand Down
2 changes: 1 addition & 1 deletion R/var_label.R
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ get_variable_labels <- var_label
#' "something"
#' )
#' )
#' var_labels <- setNames(as.list(description$label), description$name)
#' var_labels <- stats::setNames(as.list(description$label), description$name)
#' iris_labelled <- iris %>%
#' set_variable_labels(.labels = var_labels, .strict = FALSE)
#' var_label(iris_labelled)
Expand Down
2 changes: 1 addition & 1 deletion man/var_label.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4d90778

Please sign in to comment.