round | R Documentation |
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 |
digits |
number of digits to round to |
For 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.