The design matrix is a representation of the explanatory variables (a.k.a. the X matrix) where:
In R: