Created
December 21, 2017 07:36
-
-
Save ColinFay/004458341fa95d88c8557907cd64ed31 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(tidyverse) | |
library(rlang) | |
library(glue) | |
library(stringr) | |
small_iris <- slice(iris, 1) | |
set_names(small_iris, ~ glue("{.x}_small")) | |
set_names(small_iris, ~ tolower(.x)) | |
set_names(small_iris, ~ str_replace_all(.x, "\\.", "_")) | |
set_names(small_iris, ~ str_replace_all(.x, "\\.", "_") %>% tolower()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment