Learn R Programming

memuse (version 1.1)

Print: Printing

Description

Print and show methods for memuse class objects.

Usage

## S3 method for class 'memuse':
print(x, ..., unit=x@unit, unit.prefix=x@unit.prefix, unit.names=x@unit.names, digits=3)
  ## S3 method for class 'memuse':
show(object)

Arguments

x, object
memuse class object
...
extra arguments
unit
the unit to be used in printing; defaults to x's unit
unit.prefix
the unit prefix to be used in printing; defaults to x's unit.prefix
unit.names
the unit names (short or long) to be used in printing; defaults to x's unit.names
digits
the number of decimal digits to print; default is 3

Value

  • Returns a string.

See Also

link{Constructor} memuse-class

Examples

Run this code
x <- mu(1e6)

print(x)
x # same as show(x)

Run the code above in your browser using DataLab