% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cat_utils.R
\name{.count_cells_table_cat}
\alias{.count_cells_table_cat}
\title{Count cells efficiently using table()}
\usage{
.count_cells_table_cat(y, time_indices, n_categories, subject_mask = NULL)
}
\arguments{
\item{y}{Data matrix (n_subjects x n_time)}

\item{time_indices}{Integer vector of time indices}

\item{n_categories}{Number of categories}

\item{subject_mask}{Logical vector for subject selection}
}
\value{
Array of counts
}
\description{
Alternative implementation using R's table function.
}
\keyword{internal}
