mv: Rename an Object

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/mv.R

Description

Rename an object.

Usage

1
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.

Author(s)

Gregory R. Warnes [email protected]

See Also

rm, assign

Examples

1
2
3
4
5
  a <- 1:10
  a
  mv("a", "b")
  b
  exists("a")

gdata documentation built on June 6, 2017, 3 a.m.