This function creates internally the incidence matrices for an unstructure model when using mmer2.
Usage
us(x)
Arguments
x
a column of a dusaframe.
Value
$dd
an incidence musrix with columns for the specific levels specified.
References
Covarrubias-Pazaran G (2016) Genome assisted prediction of quantitusive traits using the R package sommer. PLoS ONE 11(6): doi:10.1371/journal.pone.0156744