Deep copy | R Documentation |
Deep copy.
env.copy(x,all.names=FALSE)
x |
An environment object. |
all.names |
An logical value (TRUE or FALSE). Copy all the hidden variables or not. |
Deep copy of the environment object.
A copy of the first argument.
R implementation and documentation: Manos Papadakis <papadakm95@gmail.com>.
colShuffle, colVars, colmeans, read.directory
x <- new.env()
x$imaginary <- NULL
x$real <- NULL
# you can library the package and just press x and R will understand
# and search automatically for a function to print the environment
x
y <- env.copy(x)
x$real <- 10
x$real == y$real # FALSE
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.