zapsmall {onion} | R Documentation |
Concatenation
Description
Zapping small components to zero
Usage
## S4 method for signature 'onion'
zapsmall(x,digits=getOption("digits"))
## S4 method for signature 'onionmat'
zapsmall(x,digits=getOption("digits"))
Arguments
x |
An onion or onionmat |
digits |
integer indicating the precision to be used as in |
Details
Uses base::zapsmall()
to zap small elements to zero.
Value
An onion
Author(s)
Robin K. S. Hankin
Examples
zapsmall(as.octonion(0.01^(1:8),single=TRUE))
a <- roct(7)
x <- a^1/a
x
zapsmall(x)
[Package onion version 1.5-3 Index]