R transmute() creates new columns and deletes old columns unlike mutate() which add the columns at the end
Pontifications
- Following up on Reverse Engineering R joyplot code part 4 - Need to figure out what “%>%” really means and what tidyverse and transmute() do, here’s what
transmute()
does! - From R for Data Science - 5.5 Add new variables with mutate():
QUOTE
"Besides selecting sets of existing columns, it’s often useful to add new columns that are functions of existing columns. That’s the job of mutate()
...
If you only want to keep the new variables, use transmute()"
END QUOTE