Relative Content

Tag Archive for rdplyrtidyr

Most idiomatic way to mutate multiple similar columns?

I’m generating multiple columns in a mutate() call, all by using a function of 1) an already-existing column and 2) some value which is different for each output column. The following code produces what I want, but it smells: