Description Usage Arguments Details Value Author(s) See Also Examples
clone
physically duplicates objects and can additionally change some features, e.g. length.
1 2 3 4 5 6 |
x |
|
y |
|
... |
further arguments to the generic |
clone
is generic.
clone.default
currently only handles atomics.
clone.list
recursively clones list elements.
still.identical
returns TRUE if the two atomic arguments still point to the same memory.
an object that is a deep copy of x
Jens Oehlschlägel
1 2 3 4 5 6 7 8 | x <- 1:12
y <- x
still.identical(x,y)
y[1] <- y[1]
still.identical(x,y)
y <- clone(x)
still.identical(x,y)
rm(x,y); gc()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.