Description Usage Arguments Value Author(s) See Also Examples
Create indexed components for the elements of a list.
1 | indexify(x, out)
|
x |
a numeric vector or list of vectors |
out |
string indicating the output format
( |
A vector (or list) of indexed numbers
Gaston Sanchez
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | # let's say you have a numeric vector like this
num_vec = c(2, 3, 1, 4)
# get indices in vector format
indexify(num_vec)
# let's say you have a list like this
str_list = list(c("a","b","c"), c("d", "e"), c("f","g","h"))
# get indices in vector format
indexify(str_list)
# get indices in list format
indexify(str_list, "list")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.