Thanks to all who responded and helped. It worked great!
On 2021/11/20 下午 10:31, Rui Barradas wrote:
Hello,
You can get all objects to be changed into a list, change the list's
names attribute and assign back to the globalenv. Something like the
following.
First see if the objects exist in t
Agreed... This Is The Way.
To interactively sit at the R console and type in commands without keeping
those commands in an editor and running them from scratch periodically to
insure that they achieve your goals is a only a recipe for mystery, not for
data analysis.
R is a tool for transformin
Hello,
You can get all objects to be changed into a list, change the list's
names attribute and assign back to the globalenv. Something like the
following.
First see if the objects exist in the global env.
ls()
#[1] "meb1.p.emb" "meb2.p.emb" "mec1.p.emb" "mec2.p.emb"
#[5] "mej12.p.emb" "me
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
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
5 matches
Mail list logo