replicates the functionality of model.matrix, but faster
Replicates the functionality of model.matrix
, but faster
factor_to_indicators(x, ind_ref_mat = NULL)
dt_expand_factors(dt)
the factor to expand
a matrix used for expansion, if NULL generated automatically
the dt to expand