Coerce all columns in the object to factor (i.e. stringsAsFactors).

factorize(object, ...)

Arguments

object

Object.

...

Additional arguments.

Value

Modified object. All columns will be coerced to factor.

See also

encode() for run-length encoding (Rle) approach.

Examples

class(factorize)
#> [1] "nonstandardGenericFunction" #> attr(,"package") #> [1] "methods"