Learn R Programming

memuse (version 1.1)

Constructor: memuse Constructor

Description

Constructor for objects of class memuse.

Usage

## S3 method for class 'numeric':
memuse(size=0, unit=.UNIT, unit.prefix=.PREFIX, unit.names=.NAMES)
  ## S3 method for class 'numeric':
mu(size=0, unit=.UNIT, unit.prefix=.PREFIX, unit.names=.NAMES)

Arguments

size
numeric; indicates the unit-multiple number of bytes used by the object.
unit
string; the unit of storage, such as "MiB" or "MB", depending on prefix. Case is ignored.
unit.prefix
string; the unit prefix, namely IEC or SI. Case is ignored.
unit.names
string; control for whether the unit names should be printed out or their abbreviation should be used. Options are "long" and "short", respectively. Case is ignored.

Value

  • Returns a memuse class object.

Details

Simple constructor for memuse objects.

See Also

memuse-class Accessors Converters

Examples

Run this code
x <- mu(100, unit="kb")
x

y <- mu(100, unit="kb", unit.prefix="SI")
y

Run the code above in your browser using DataLab