Combine Brobdingnagian or Glubdubbdribian vectors through concatenation
Other arguments coerced to brob form
If any argument has class
glub, all arguments are coerced to
glubs. Otherwise, if any argument has class
arguments are coerced to
cbrob() operates recursively, calling
.cPair() uses S4 method dispatch to call
.Glub.cpair() according to the
classes of the arguments.
As of R-2.4.0, it is apparently not possible to use S4 methods to
c() to coerce to class
brob form and
concatenate as expected. This would seem to be a reasonable
c() from the user's perspective.
Conceptually, the operation is simple: concatenate the
slot and the
positive slot separately, then call
on the two resulting vectors. When concatenating
the real and imaginary components (being
The choice of name—
cbrob()—is not entirely logical.
Because it operates consistently on
objects, it might be argued that
cSwift() would be a more
Robin K. S. Hankin; original idea due to John Chambers
1 2 3
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.