sum {onion}R Documentation

Various summary statistics for onions

Description

Various summary statistics for onions

Usage

onion_allsum(x)
## S4 method for signature 'onion'
sum(x)
## S4 method for signature 'quaternion'
prod(x)
## S4 method for signature 'octonion'
sum(x)
## S4 method for signature 'onionmat'
sum(x)
## S4 method for signature 'octonion'
prod(x)
## S4 method for signature 'onion'
str(object, ...)
str_onion(object, vec.len = 4, ...)
onion_allsum(x)
onionmat_allsum(x)
quaternion_allprod(x)

Arguments

x, object, ...

Objects of class onion

vec.len

number of elements to display

Details

For a onion object, return the sum or product accordingly

Value

Return an onion

Note

Function str() uses functionality from condense().

Author(s)

Robin K. S. Hankin

Examples


sum(roct())
str(roct())

[Package onion version 1.5-3 Index]