Because a factor's levels are always a character vector, factors are converted into a column with validator.items of type EnumValidator with values containing the levels.

decode_datatable_column(name, object)

Arguments

name

Name of the column

object

The vector to generate a validator and values from