Learn R Programming

Brobdingnag (version 1.2-9)

cbrob: Combine Brobdingnagian vectors

Description

Combine Brobdingnagian or Glubdubbdribian vectors through concatenation

Usage

cbrob(x, ...)

Arguments

x

Brobdingnagian vector

...

Other arguments coerced to brob form

Author

Robin K. S. Hankin; original idea due to John Chambers

Details

If any argument has class glub, all arguments are coerced to glubs. Otherwise, if any argument has class brob, all arguments are coerced to brobs.

Function cbrob() operates recursively, calling .cPair() repeatedly. Function .cPair() uses S4 method dispatch to call either .Brob.cpair() or .Glub.cpair() according to the classes of the arguments.

Examples

Run this code
a <- as.brob(2)^1e-40
cbrob(1:4,4:1,a)
cbrob(1:4,a,1i)

Run the code above in your browser using DataLab