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