clone physically duplicates objects and can additionally change some features, e.g. length.
Usage
clone(x, …)
# S3 method for list
clone(x, …)
# S3 method for default
clone(x, …)
still.identical(x, y)
Arguments
x
x
y
y
…
further arguments to the generic
Value
an object that is a deep copy of x
Details
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.