% Generated by roxygen2: do not edit by hand % Please edit documentation in R/types.R \name{ts_factor} \alias{ts_factor} \title{Typed factor} \usage{ ts_factor(levels = NULL) } \arguments{ \item{levels}{A character vector of levels (optional).} } \description{ Factors are integers with labels. On the JS side, these are \emph{always} represented as a string array (even if only one value - yay!). }