I am running the same code on different datasets. They all contain four initial variables: year, country, object, period, and then a list of city codes. Each file contains a different number of city codes. I would like to add a suffix to each city code, but want to have code that is general enough that it could apply to any of my files. The ideal scenario is one where all variables after the variable 'period' would contain a suffix.
How can I specify that all variables, after a given variable (in this case 'period'), should be renamed to contain the suffix "c_"?
Thanks
How can I specify that all variables, after a given variable (in this case 'period'), should be renamed to contain the suffix "c_"?
Thanks
Comment