Description Usage Arguments Details
Generic for the base::as.vector
function
1 |
x |
an R object |
mode |
character string naming an atomic mode or "list" or "expression" or (except for vector) "any". Currently, is.vector() allows any type (see typeof) for mode, and when mode is not "any", is.vector(x, mode) is almost the same as typeof(x) == mode. |
Need to explicitly define this generic otherwise the implicit generic in package "base" would dispatch on ('x', 'mode'). Here we set dispatch on the 1st arg (the 'x' arg) only!
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.