powered by
Rename an object.
mv(from, to, envir = parent.frame())
Character scalar giving the source object name
Character scalar giving the desination object name
Environment in which to do the rename
Invisibly returns the value of the object.
This function renames an object by the value of object a to the name b, and removing a.
a
b
rm, assign
rm
assign
# NOT RUN { a <- 1:10 a mv("a", "b") b exists("a") # }
Run the code above in your browser using DataLab