View source: R/valid_indices.R
valid_indices | R Documentation |
Function to determine valid indices in a candidate vector
valid_indices(idx, n)
idx |
|
n |
|
Valid indices into another vector are assumed to run from 1 to n
. The
function returns the vector of valid indices, given n
, in the input vector idx
.
vector of valid indices, in order they occur in idx
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.