% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/GRCFE.R
\name{generate_row_column_design}
\alias{generate_row_column_design}
\title{Generate the row-column treatment layout from a generator matrix}
\usage{
generate_row_column_design(G, s, p, q)
}
\arguments{
\item{G}{Integer generator matrix with \code{p + q} rows.}

\item{s}{Integer. Number of levels.}

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

\item{q}{Integer. Number of column blocking factors.}
}
\value{
A list containing \code{s}, \code{p}, \code{q}, \code{n}, \code{G},
\code{design}, \code{Gc}, and \code{Gr}. The \code{design} component is a
data frame with columns \code{Row}, \code{Col}, and \code{F1}, ..., \code{Fn}.
}
\description{
Converts a generator matrix \code{G} into a row-column design by combining the
row-generator and column-generator parts over \code{GF(s)}.
}
\examples{
G <- build_G(s = 3, p = 1, q = 1, n = 2)
res <- generate_row_column_design(G, s = 3, p = 1, q = 1)
head(res$design)
stopifnot(all(c("Row", "Col", "F1", "F2") \%in\% names(res$design)))

}
