Description Usage Arguments Value
This function will identify the numerical indices that corresponds to a selection based on a character vector, by comparing it to a list representing the dimension-names to be used.
1 | array_index(.bookmark, .dimnames, .check_dimnames = TRUE)
|
.bookmark |
The caracter vector to be used for the selection.
(If a list is detected, it will be converted to a vector
first.) This vector must have the same length as the list in
the |
.dimnames |
The list of dimension names. It will be assumed
that this is a named list of character vectors, and it will
also be assumed that the names (and the content of the
individual character vectors) are unique. A test of the
validity of |
.check_dimnames |
A logical value, default |
The result will be a vector of integers, which can be used
as an alternative to .bookmark
for the subsetting.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.