Last chance! 50% off unlimited learning
Sale ends in
swap.prefix(x)
"swap.prefix"(x)
swap.names(x)
"swap.names"(x)
swap.unit(x, unit, precedence = .PRECEDENCE)
"swap.unit"(x, unit)
memuse
object after the swap occursmemuse
class object.
memuse
formats.swap.unit()
will switch an object to another, supplied unit. If the
unit is from another prefix, then the prefix too will change. In this case,
the size will change appropriately.
swap.prefix()
will change an object from one unit.prefix to the
other. In this case, the size will change appropriately.
swap.names
will change from short to long, or long to short printing.
The size and prefix of the object are unchanged.
Constructor memuse-class
## Not run:
# x <- mu(1e6)
#
# x
# swap.prefix(x)
# swap.names(x)
# swap.unit(x, "bytes")
# ## End(Not run)
Run the code above in your browser using DataLab