Essentially, I would like to automate this variable creation and I am not sure what is the most efficient way to do so. The problem is that in my real dataset, I have many regexes I need to use that are stored in a list(myregex1 = 'hello', myregex2 = 'nice')
so creating a mutate for each of them is not good. Is purrr the solution?
thanks that is really neat. Could you please just explain what the !!! is doing here? I was aware of the quo() and !! but I dont quite understand why your code works here... Why do the variables get the right name? thanks!
The !!! operator unquotes and splices its argument. The argument should represent a list or a vector. Each element will be embedded in the surrounding call, i.e. each element is inserted as an argument. If the vector is named, the names are used as argument names.
thanks Mara! although I have to admit all these esoteric !! and !!! are sometimes a bit confusing to me. is there a good tutorial where I can get the big picture view of the tidyeval?