Various summary statistics for onions
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)
x,object,
...``: Objects of class onion
vec.len
: number of elements to displayFor a onion
object, return the sum or product accordingly
Return an onion
Robin K. S. Hankin
Function str()
uses functionality from condense()
.
sum(roct()) str(roct())