View source: R/internal_utils.R
i_is_index | R Documentation |
i_is_index
Tests if x fit the requirements of being indices
i_is_index(x, max_value, allow_negative = FALSE)
x |
numeric values |
allow_negative |
boolean. Count negative integers as indices? defaults to FALSE |
max_length |
Max acceptable values for x (inclusive). Must be >= 1 |
This function potentially allows negative indices, given that they may be used with the intent of removing an entry that corresponds to the index. Conversely, zero is never used as an index in R and is not recognized as such here.
boolean
Jose Eduardo Meireles
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.