View source: R/misc.utilities.R
vector.namesmatch | R Documentation |
This function is deprecated in favor of match_names()
and will be
removed in a future release.
vector.namesmatch(v, names, errname = NULL)
v |
a vector (or list) with named elements, to be reorderd |
names |
a character vector of element names, corresponding to names of
|
errname |
optional, name to be reported in any error messages. default
to |
returns v
, with elements reordered
earlier versions of this function did not order as advertised
test<-list(c=1,b=2,a=3)
vector.namesmatch(test,names=c('a','c','b'))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.