The function ofactor() is a convenience wrapper for
factor() that orders the levels as they appear in the data if the
levels argument is not specified.
Usage
ofactor(x = character(), ...)
Arguments
x
A vector of data, usually taking a small number of distinct values.