Hi,
I'm trying to create a loop to add a two letter prefix (e.g. AB) to a varlist I've merged into a dataset so I know that they weren't part of the original data.
Does anyone have any ideas on how I could create a loop that would change varname to AB_varname for the whole list without easily? I've seen various posts about loops for renaming variables but they all seem to involve numbers
Thanks
Robert
I'm trying to create a loop to add a two letter prefix (e.g. AB) to a varlist I've merged into a dataset so I know that they weren't part of the original data.
Does anyone have any ideas on how I could create a loop that would change varname to AB_varname for the whole list without easily? I've seen various posts about loops for renaming variables but they all seem to involve numbers
Thanks
Robert
Comment