Re: [R] renaming objects

From: Ericka Lundström <>
Date: Mon, 03 Mar 2008 22:38:34 +0100

On 03/03/2008, at 22.20, wrote:
> Is there a way to rename R objects?
> I am looking for a way to rename objects
> without making new objects.
> #For example:
> x = c(1:40)
> # I wish to use a function to rename x, already created, to y,
> perhaps by
> obj.rename(x,y)
> # or
> obj.rename("x","y")
y <- x # changes x to y with same values.

Ericka mailing list PLEASE do read the posting guide and provide commented, minimal, self-contained, reproducible code. Received on Mon 03 Mar 2008 - 21:40:19 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 03 Mar 2008 - 23:30:19 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive