
memuse
.
size(x) <- value
unit(x) <- value
unit.prefix(x) <- value
unit.names(x) <- value
"size"(x) <- value
"unit"(x) <- value
"unit.prefix"(x) <- value
"unit.names"(x) <- value
size()
, otherwise a
string is returned.
size(x) <- 10
is semantically no
different from calling x@size <- 10
These methods are strict replacement methods; if you need to swap the units
of a memuse
class object, you should probably be using the
Swaps
methods. See example below for further details.
Accessors memuse-class
## Not run:
# x <- mu(2000, unit="bytes")
# x
#
# size(x) <- 1000
# x
# ## End(Not run)
Run the code above in your browser using DataLab