[R] Renaming multiple objects

Steven Yen @tyen @end|ng |rom ntu@edu@tw
Sat Nov 20 11:27:08 CET 2021


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

Thank you!



More information about the R-help mailing list