c: Concatenation

cR Documentation

Concatenation

Description

Combines its arguments to form a single onion.

Usage

c_onionpair(x,y)
## S4 method for signature 'onion'
c(x,...)

Arguments

x, y, ...

onions

Details

Returns an onion of the same type as its arguments. Names are inherited from the behaviour of cbind(), not c().

Value

An onion

Note

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.

Author(s)

Robin K. S. Hankin

Examples

a <- roct(3)
b <- seq_onion(from=Oil,to=Oj,len=6)
c(a,b)

c(rquat(3),H1,H0,Him)

RobinHankin/onion documentation built on April 20, 2024, 2:05 p.m.