% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/GRCFE.R
\name{build_G}
\alias{build_G}
\title{Build a generator matrix for theorem-based row-column designs}
\usage{
build_G(s, p, q, n)
}
\arguments{
\item{s}{Integer. Number of levels. Prime values are supported by the
theorem-based constructions.}

\item{p}{Integer. Number of row blocking factors.}

\item{q}{Integer. Number of column blocking factors.}

\item{n}{Integer. Number of treatment factors. Must be either \code{p + q}
or \code{p + q + 1}.}
}
\value{
Integer generator matrix with \code{p + q} rows and \code{n} columns.
}
\description{
Dispatches to the implemented theorem-based generator-matrix construction for
full designs and one-replicate fractions.
}
\examples{
G <- build_G(s = 3, p = 1, q = 1, n = 2)
G
stopifnot(nrow(G) == 2, ncol(G) == 2)

}
\seealso{
\code{\link{generate_row_column_design}}
}
