clone.Object: Clones an Object

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

Description

Creates an identical copy of the object and returns a reference to the new object.

Usage

1
2
## S3 method for class 'Object'
clone(this, ...)

Arguments

...

Not used.

Details

Please note that no constructors are called during the creation of the clone and neither is any static class code called.

Value

A reference to the new object.

Author(s)

Henrik Bengtsson

See Also

For more information see Object.

Examples

1
2
3
4
  o1 <- Object()
  o2 <- clone(o1)

  print(equals(o1, o2))


Search within the R.oo package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.