memuse (version 4.0-0)

sum,memuse-method: memuse Arithmetic

Description

Binary arithmetic operations for memuse objects.

Usage

# S4 method for memuse
sum(x, ..., na.rm = FALSE)

Arguments

x

A memuse object.

...

Additional arguments

na.rm

Whether NA's should be ignored.

Value

Returns a memuse class object.

Details

Simple arithmetic reductions.

See Also

Constructor memuse-class

Examples

Run this code
# NOT RUN {
x = mu(2000)
y = mu(5000)

sum(x, y)

### Mixing numeric and memuse objects will work, but the first one must be a
### memuse object.
sum(mu(10), 10) # This will work
sum(10, mu(10)) # This will not
# }
# NOT RUN {
# }

Run the code above in your browser using DataCamp Workspace