Learn R Programming

memuse (version 2.5)

Constructor: memuse Constructor

Description

Constructor for objects of class memuse.

Usage

mu(size, unit = .UNIT, unit.prefix = .PREFIX, unit.names = .NAMES)
"mu"(size = 0, unit = .UNIT, unit.prefix = .PREFIX, unit.names = .NAMES)
"mu"(size = 0, unit = .UNIT, unit.prefix = .PREFIX, unit.names = .NAMES)
"mu"(size, unit = .UNIT, unit.prefix = .PREFIX, unit.names = .NAMES)
"mu"(size = 0, unit = .UNIT, unit.prefix = .PREFIX, unit.names = .NAMES)
memuse(size, unit = .UNIT, unit.prefix = .PREFIX, unit.names = .NAMES)
"memuse"(size = 0, unit = .UNIT, unit.prefix = .PREFIX, unit.names = .NAMES)
"memuse"(size = 0, unit = .UNIT, unit.prefix = .PREFIX, unit.names = .NAMES)
"memuse"(size = 0, unit = .UNIT, unit.prefix = .PREFIX, unit.names = .NAMES)
"memuse"(size, 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
## Not run: 
# x <- mu(100, unit="kb")
# x
# 
# y <- mu(100, unit="kb", unit.prefix="SI")
# y
# ## End(Not run)

Run the code above in your browser using DataLab