ts/man/ts_factor.Rd
Tom Elliott 5e84656a89 docs
2025-01-20 21:13:21 +13:00

18 lines
470 B
R

% 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).}
}
\value{
A ts object that accepts factors with the specified levels.
}
\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!).
}