Constructor | R Documentation |
Constructor for objects of class memuse
.
mu(size, unit = "best", prefix = "IEC", names = "short") ## S4 method for signature 'ANY' mu(size, unit = "best", prefix = "IEC", names = "short") ## S4 method for signature ''NULL'' mu(size, unit = "best", prefix = "IEC", names = "short") ## S4 method for signature 'numeric' mu(size, unit = "best", prefix = "IEC", names = "short") ## S4 method for signature 'object_size' mu(size, unit = "best", prefix = "IEC", names = "short") ## S4 method for signature 'missing' mu(size, unit = "best", prefix = "IEC", names = "short") memuse(size, unit = "best", prefix = "IEC", names = "short") ## S4 method for signature 'ANY' memuse(size, unit = "best", prefix = "IEC", names = "short") ## S4 method for signature ''NULL'' memuse(size, unit = "best", prefix = "IEC", names = "short") ## S4 method for signature 'missing' memuse(size, unit = "best", prefix = "IEC", names = "short") ## S4 method for signature 'numeric' memuse(size = size, unit = "best", prefix = "IEC", names = "short") ## S4 method for signature 'object_size' memuse(size, unit = "best", prefix = "IEC", names = "short")
size |
|
unit |
|
prefix |
|
names |
|
For numeric objects, if the length is 1, then its value is used as the number of bytes. Otherwise, the object's memory usage in R is taken for the size parameter.
Returns a memuse
class object.
memuse-class Accessors Converters
## Not run: ### The value passed as 'size' is the number of bytes x <- memuse(100, unit="kb") x y <- memuse(100, unit="kb", prefix="SI") y ### Use the memory usage of object 'size' memuse(rnorm(1e4)) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.