clone: Cloning ff and ram objects

Description Usage Arguments Details Value Methods (by class) Author(s) See Also Examples

View source: R/clone.R

Description

clone physically duplicates objects and can additionally change some features, e.g. length.

Usage

1
2
3
4
clone(x, ...)

## Default S3 method:
clone(x, ...)

Arguments

x

x an R object

...

further arguments to the generic

Details

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.

Value

an object that is a deep copy of x

Methods (by class)

Author(s)

Jens Oehlschlägel

See Also

clone.ff, copy_vector

Examples

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()

bit documentation built on Aug. 4, 2020, 9:06 a.m.