Cloning ff and ram objects
clone
physically duplicates objects and can additionally change
some features, e.g. length.
clone(x, ...) ## Default S3 method: clone(x, ...)
x |
|
... |
further arguments to the generic |
clone
is generic. clone.default
handles ram objects.
Further methods are provided in package 'ff'.
still.identical
returns TRUE if the two atomic arguments still
point to the same memory.
an object that is a deep copy of x
default
: default method uses R's C-API 'duplicate()'
Jens Oehlschlägel
clone.ff
, copy_vector
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()
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.