Rename an Object

Rename an object.

Keywords
data, environment
Usage
mv(from, to, envir = parent.frame())
Arguments
from

Character scalar giving the source object name

to

Character scalar giving the desination object name

envir

Environment in which to do the rename

Details

This function renames an object by the value of object a to the name b, and removing a.

Value

Invisibly returns the value of the object.

See Also

rm, assign

Aliases
  • mv
Examples
  a <- 1:10
  a
  mv("a", "b")
  b
  exists("a")
Documentation reproduced from package gdata, version 2.18.0, License: GPL-2

Community examples

Looks like there are no examples yet.