Class index is a virtual class designating index vectors, or subscripts , for (possibly named) vectors and arrays. It is typically used in signatures of methods for the subscript and subassignment operators, namely [ and [<-. It is implemented as a union of the atomic vector classes numeric, logical, and character.