[Seqinr-commits] r1622 - pkg/man
noreply at r-forge.r-project.org
noreply at r-forge.r-project.org
Fri Jul 17 23:46:01 CEST 2009
Author: lobry
Date: 2009-07-17 23:46:01 +0200 (Fri, 17 Jul 2009)
New Revision: 1622
Added:
pkg/man/move.Rd
Log:
new function
Added: pkg/man/move.Rd
===================================================================
--- pkg/man/move.Rd (rev 0)
+++ pkg/man/move.Rd 2009-07-17 21:46:01 UTC (rev 1622)
@@ -0,0 +1,43 @@
+\name{move}
+\alias{move}
+\alias{mv}
+\title{Rename an R object}
+\description{
+Rename object \code{from} into \code{to}.
+}
+\usage{
+move(from, to)
+mv(from, to)
+}
+\arguments{
+ \item{from}{an R object name}
+ \item{to}{the new R object name}
+}
+\value{
+none.
+}
+\references{
+\code{citation("seqinr")}
+}
+\author{ J.R. Lobry }
+\seealso{\code{\link{swap}} }
+
+\examples{
+#
+# Example in a new empty environment:
+#
+local({
+ zefplock <- pi
+ print(ls())
+ print(zefplock)
+ mv(zefplock, toto)
+ print(ls())
+ print(toto)
+ stopifnot(identical(toto, pi)) # Sanity check
+})
+#
+# Check that self-affectation is possible:
+#
+mv(mv, mv) # force self-affectation for the function itself
+mv(mv, mv) # OK, function mv() still exists
+}
More information about the Seqinr-commits
mailing list