Читать книгу The Big R-Book - Philippe J. S. De Brouwer - Страница 89
4.3.7 Factors
ОглавлениеFactors are the objects which hold a series of labels. They store the vector along with the distinct values of the elements in the vector as label. Factors are in many ways similar to the enum
data type in C, C++ or Java, here they aremainly used to store named constants. The labels are always of the character-type2 irrespective of data type of the elements in the input vector.
factors