[R] Renaming multiple objects
Duncan Murdoch
murdoch@dunc@n @end|ng |rom gm@||@com
Sat Nov 20 11:53:05 CET 2021
On 20/11/2021 5:27 a.m., Steven Yen wrote:
> I have named NUMEROUS objects (each containing, e.g., 48 obs. of 5
> variables), such as
> mec1.p.emb
> mec2.p.emb
> meb1.p.emb
> meb2.p.emb
> mej12.p.emb
> mej22.p.emb
>
> How would I rename these objects removing the silly ".emb", into objects
> mec1.p
> mec2.p
> meb1.p
> meb2.p
> mej12.p
> mej22.p
>
Use a global search and replace on your source code, and create them
with the correct names.
Duncan Murdoch
More information about the R-help
mailing list