Description Details Objects from the Class Examples

`"array_or_vector"`

is the class union of
`c("array", "matrix", "vector")`

and exists for its use in
signatures of method definitions.

Using `"array_or_vector"`

instead of just `"vector"`

in a
signature makes an important difference: E.g., if we had
`setMethod(crossprod, c(x="mpfr", y="vector"), function(x,y) CPR(x,y))`

,
a call `crossprod(x, matrix(1:6, 2,3))`

would extend into a call
of `CPR(x, as(y, "vector"))`

such that `CPR()`

's second
argument would simply be a vector instead of the desired
*2 x 3* matrix.

A virtual Class: No objects may be created from it.

1 | ```
showClass("array_or_vector")
``` |

Rmpfr documentation built on Jan. 13, 2018, 1:11 a.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.