I have a number of variables in a data.frame in R, called Offshore, EA19, NON_EA19
and many more. What's the easiest way to put a "P_" in front of every variable's name, so that they're called P_Offshore, P_EA19, P_NON_EA19
?
Preferably in dplyr.
I have a number of variables in a data.frame in R, called Offshore, EA19, NON_EA19
and many more. What's the easiest way to put a "P_" in front of every variable's name, so that they're called P_Offshore, P_EA19, P_NON_EA19
?
Preferably in dplyr.