as.character.Object: Gets a character string representing the object

Description Usage Arguments Value Author(s) See Also Examples

Description

Gets a character string representing the object. In the class Object, this method simply returns the class name and the hashCode() value of the object.

Usage

1
2
## S3 method for class 'Object'
as.character(x, ...)

Arguments

...

Not used.

Value

Returns a character string representation of the Object. By default it is "{class name}: {hash code}".

Author(s)

Henrik Bengtsson

See Also

For more information see Object.

Examples

1
2
  obj <- Object()
  as.character(obj)    # "Object: 0x000000000ab6a7a8"

R.oo documentation built on Aug. 26, 2020, 5:13 p.m.