genericIndex package:rio

The genericIndex function is an overloaded version of !!, which accepts any Integral value as the index.