mv | R Documentation |
Rename an object.
mv(from, to, envir = parent.frame())
from |
Character scalar giving the source object name |
to |
Character scalar giving the desination object name |
envir |
Environment in which to do the rename |
This function renames an object by the value of object a
to the
name b
, and removing a
.
Invisibly returns the value of the object.
Gregory R. Warnes greg@warnes.net
rm
, assign
a <- 1:10
a
mv("a", "b")
b
exists("a")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.