serializedSize function

Calculate the size of an R object when it is serialized

Calculate the size of an R object when it is serialized

This function goes through all the motions of serializing an object, but does nothing with the bytes other than to tally the total length.

serializedSize(obj)

Arguments

  • obj: An R object.

Returns

(double) Number of bytes needed to serialize this object.

Examples

object.size(mtcars) serializedSize(mtcars)

Author(s)

Mike FC