Skip to content

Commit

Permalink
fix vignette
Browse files Browse the repository at this point in the history
  • Loading branch information
etiennebacher committed Nov 28, 2024
1 parent fba88db commit ee57df3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vignettes/tidyverse_translation.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@ a vector of new names for these columns that must be of the same length.
# ---------- datawizard -----------
starwars |>
data_rename(
pattern = c("sex", "hair_color"),
select = c("sex", "hair_color"),
replacement = c("Sex", "Hair Color")
)
```
Expand Down Expand Up @@ -547,7 +547,7 @@ to_rename <- names(starwars)
starwars |>
data_rename(
pattern = to_rename,
select = to_rename,
replacement = tools::toTitleCase(gsub("_", " ", to_rename, fixed = TRUE))
)
```
Expand Down

0 comments on commit ee57df3

Please sign in to comment.