Rounding of onions
Round elements of an onion
## S4 method for signature 'onion' round(x,digits=0) ## S4 method for signature 'onionmat' round(x,digits=0)
x
: Object of class onion
digits
: number of digits to round toFor onion
s, coerce to a matrix, round, then coerce back to an onion
. For onionmat
s, coerce to an onion
, round, then coerce back to an onionmat
.
Return an onion
Robin K. S. Hankin
round(rquat()*100) round(rquat()*100,3)