Learn R Programming

gdata (version 3.0.1)

mv: Rename an Object

Description

Rename an object.

Usage

mv(from, to, envir = parent.frame())

Value

Invisibly returns the value of the object.

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

Author

Gregory R. Warnes greg@warnes.net

Details

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

See Also

Examples

Run this code
a <- 1:10
a
mv("a", "b")
b
exists("a")

Run the code above in your browser using DataLab