I stumbled upon this line while learning about the rename
function in "dplyr" package. I am wondering what is the meaning of ~
and .x
I have tried googling it but I couldn't find an answer.
rename_with(iris, ~ tolower(gsub(".", "_", .x, fixed = TRUE)))