factor {base} R Documentation

Factors

Description


The function factor is used to encode a vector as a factor
(the terms ‘category’ and ‘enumerated type’ are also used
for factors).

Usage

factor(x);

Arguments

x

a vector of data, usually taking a small number of distinct values. [as string]

Details

Authors

SMRUCC genomics Institute

Value

this function returns data object of type integer.

clr value class

Examples


[Package base version 2.33.856.6961 Index]