i_is_index {spectrolab} | R Documentation |
Compatible with being an index?
Description
i_is_index
Tests if x fit the requirements of being indices
Usage
i_is_index(x, max_value, allow_negative = FALSE)
Arguments
x |
numeric values |
max_value |
Max acceptable values for x (inclusive). Must be greater than 1 |
allow_negative |
boolean. Count negative integers as indices? defaults to FALSE |
Details
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.
Value
boolean
Author(s)
Jose Eduardo Meireles
[Package spectrolab version 0.0.19 Index]