as.character.Object {R.oo}R Documentation

Gets a character string representing the object

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

## 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 (http://www.braju.com/R/)

See Also

For more information see Object.

Examples

  obj <- Object()
  as.character(obj)    # "Object: 0x016A80FC"

[Package R.oo version 1.6.5 Index]