as.memuse(x, ...)
"as.memuse"(x, unit = .UNIT, unit.prefix = .PREFIX, unit.names = .NAMES)
"as.memuse"(x, unit = .UNIT, unit.prefix = .PREFIX, unit.names = .NAMES)
"as.memuse"(x, unit = .UNIT, unit.prefix = .PREFIX, unit.names = .NAMES)
"as.character"(x, ...)
"as.numeric"(x, as.is = FALSE)
string
; the unit of storage, such as "MiB" or "MB",
depending on prefix. Case is ignored.string
; the unit prefix, namely IEC or SI. Case
is ignored.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.memuse
object.
object_size
, and string (character)
objects into memuse
objects.Strings must be of the same form as the printed output of a a memuse object. For example, "100 KiB" is valid, but "100 (KiB)" is not. As always, case of the unit is ignored, and so "100 kib" would be valid as well.
memuse-class Accessors
## Not run:
# as.memuse(10)
# ## End(Not run)
Run the code above in your browser using DataLab