address: Address in RAM of a variable

View source: R/data.table.R

addressR Documentation

Address in RAM of a variable

Description

Returns the pointer address of its argument.

Usage

    address(x)

Arguments

x

Anything.

Details

Sometimes useful in determining whether a value has been copied or not, programmatically.

Value

A character vector length 1.

References

https://stackoverflow.com/a/10913296/403310 (but implemented in C without using .Internal(inspect()))

See Also

copy

Examples

x=1
address(x)

Rdatatable/data.table documentation built on May 3, 2024, 5:27 a.m.