% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/MFRCD.R
\name{make_D2_from_complete_sets}
\alias{make_D2_from_complete_sets}
\title{Create a D2 design from complete treatment sets}
\usage{
make_D2_from_complete_sets(
  design,
  factor_levels,
  input = c("factor_label", "number", "auto"),
  sep = "",
  prefer_margin = c("rows", "columns"),
  tol = 1e-08,
  max_solutions_checked = 100000L,
  treatment_universe = c("auto", "factorial", "observed")
)
}
\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{prefer_margin}{Preferred margin for complete-set reshuffling.}

\item{tol}{Numerical tolerance.}

\item{max_solutions_checked}{Maximum number of candidate partitions to check.}

\item{treatment_universe}{Treatment universe used for connectedness and repair.}
}
\value{
A list, matrix, data frame, or classed object containing the requested row-column design information.
}
\description{
Create a D2 design from complete treatment sets.
}
\examples{
D <- mfrcd(c(2, 2))
res <- make_D2_from_complete_sets(D, factor_levels = c(2, 2))
stopifnot(is.list(res))
}
