Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

getInternalAddress.Object

Gets the memory location where the Object resides


Description

Gets the memory location where the Object resides.

Usage

## S3 method for class 'Object'
getInternalAddress(this, format=c("numeric", "hexstring"), ...)

Arguments

format

A character string specifying what format to return.

...

Not used.

Value

The address is returned as a numeric integer if format == "numeric", and as a character string if format == "hexstring".

Author(s)

Henrik Bengtsson

See Also

getName(). For more information see Object.

Examples

obj <- Object()
  getInternalAddress(obj, format="numeric")    # 179742632
  getInternalAddress(obj, format="hexstring")  # "0x000000000ab6a7a8"

R.oo

R Object-Oriented Programming with or without References

v1.24.0
LGPL (>= 2.1)
Authors
Henrik Bengtsson [aut, cre, cph]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.