make_numeric_indices | R Documentation |
Converts (possibly) logical indices to numerical ones. Also ensures unique indices and sorts them if specified.
make_numeric_indices(ind, n = NULL, unique = TRUE, sort = TRUE)
ind |
The numerical or logical index vector |
n |
Max numerical index (used if |
unique |
Whether to keep every (numerical) index at most once |
sort |
Whether to sort the numerical indices |
A numerical index vector
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.