Dynamic name with glue in mutate call
I want to create a function that takes up as the first argument the name of a data set, and as a second argument, part of a column’s name from the dataframe. I then want to use glue
to dynamically construct the column name, in the function, and use that column in a mutate
call, like so: