Internal Size of an Object

DESCRIPTION:
Returns the number of bytes that an object occupies.

USAGE:
object.size(object)

REQUIRED ARGUMENTS:
object:
any S-PLUS object or expression.

VALUE:
The size (in bytes) of the evaluated argument, as it is held in memory.

DETAILS:
The object.size option gives the maximum size that is allowed for an object. If you want to create an object that is bigger than this, you will need to change the option.

SEE ALSO:
allocated , memory.size , storage , options .

EXAMPLES:
  object.size(NULL) # the smallest possible object
[1] 33
  object.size(browser) # a largish function
[1] 14218
  object.size(prim9) # a 500 by 9 matrix
[1] 36124