% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/counter.R
\name{count_valid}
\alias{count_valid}
\title{Count valid observations in a findings data frame}
\usage{
count_valid(df, unblind_codes = character(0))
}
\arguments{
\item{df}{A data frame with at least \code{subj_id} and
\code{description} columns.}

\item{unblind_codes}{Character vector of topic codes that flag
potential unblinding. Defaults to \code{character(0)} (no exclusion).}
}
\value{
Integer. Number of valid rows.
}
\description{
Returns the number of rows in \code{df}, optionally excluding rows
that could unblind the study (negative subject IDs where none of
the unblinding topic codes appear in the description).
}
\examples{
df <- data.frame(subj_id = c("001", "-002"),
                 description = c("Issue A", "Issue B"),
                 stringsAsFactors = FALSE)
count_valid(df)
}
