% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/proportions.R
\name{h_get_design_mat}
\alias{h_get_design_mat}
\title{Helper Function to Create Logical Design Matrix from Factor Variable}
\usage{
h_get_design_mat(df, .var)
}
\arguments{
\item{df}{(\code{data.frame})\cr including a factor variable with name in \code{.var}.}

\item{.var}{(\code{string})\cr name of the factor variable.}
}
\value{
The logical matrix with dummy encoding of all factor levels.
}
\description{
Helper Function to Create Logical Design Matrix from Factor Variable
}
\examples{
h_get_design_mat(df = data.frame(a = factor(c("a", "b", "a"))), .var = "a")
}
\keyword{internal}
