% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/MFRCD.R
\name{validate_bounded_rcd}
\alias{validate_bounded_rcd}
\title{Validate row-column replication bounds}
\usage{
validate_bounded_rcd(
  design,
  factor_levels,
  input = c("factor_label", "number", "auto"),
  sep = "",
  replication = "auto",
  max_per_row = 1,
  max_per_column = 1
)
}
\arguments{
\item{design}{A row-column design matrix.}

\item{factor_levels}{Integer vector of factor levels.}

\item{input}{Coding used by the supplied design.}

\item{sep}{Character separator used in treatment labels.}

\item{replication}{Replication target or "auto".}

\item{max_per_row}{Maximum allowed occurrences of a treatment in a row.}

\item{max_per_column}{Maximum allowed occurrences of a treatment in a column.}
}
\value{
A list, matrix, data frame, or classed object containing the requested row-column design information.
}
\description{
Validate row-column replication bounds.
}
\examples{
D <- matrix(c(1, 2, 3, 4), nrow = 2)
res <- validate_bounded_rcd(D, factor_levels = c(2, 2), input = "number")
stopifnot(is.list(res))
}
