object.size
Internal Size of an Object

### Description

Returns the number of bytes that an object occupies.

### Usage

    object.size(x)

### Arguments

x | any S object or expression.

Value
returns an object with class "object_size" and with the size (in bytes) of the evaluated argument, as it is held in memory.
See Also
allocated, memory.size, storage.
Examples

    object.size(NULL) # the smallest possible object
    object.size(1) #
    object.size(c(1,2,3))
    object.size("abc")  #64 bytes
    object.size(c("a","b","c"))  #136 bytes
    class(object.size(1)) # "object_size""

Package utils version 6.1.5-18
Package Index