sum-memuse-method: memuse Arithmetic

Description Usage Arguments Details Value See Also Examples

Description

Binary arithmetic operations for memuse objects.

Usage

1
2
## S4 method for signature 'memuse'
sum(x, ..., na.rm = FALSE)

Arguments

x

A memuse object.

...

Additional arguments

na.rm

Whether NA's should be ignored.

Details

Simple arithmetic reductions.

Value

Returns a memuse class object.

See Also

Constructor memuse-class

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## 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

## End(Not run)

memuse documentation built on Feb. 17, 2020, 5:09 p.m.