Concatenation
Combines its arguments to form a single onion.
c_onionpair(x,y) ## S4 method for signature 'onion' c(x,...)
x,y,
...``: onionsReturns an onion of the same type as its arguments. Names are inherited from the behaviour of cbind()
, not c()
.
An onion
Robin K. S. Hankin
The method is not perfect; it will not, for example, coerce its arguments to the biggest()
type, so c(rquat(),roct())
will fail. You will have to coerce the arguments by hand.
Dispatch is based on the class of the first argument, so c(1,rquat())
will return a list (not an onion), and c(rquat(),1)
will fail.
a <- roct(3) b <- seq_onion(from=Oil,to=Oj,len=6) c(a,b) c(rquat(3),H1,H0,Him)