factors_to_indicators: Convert Factors to indicators

factor_to_indicatorsR Documentation

Convert Factors to indicators

Description

replicates the functionality of model.matrix, but faster

Replicates the functionality of model.matrix, but faster

Usage

factor_to_indicators(x, ind_ref_mat = NULL)

dt_expand_factors(dt)

Arguments

x

the factor to expand

ind_ref_mat

a matrix used for expansion, if NULL generated automatically

dt

the dt to expand


tlverse/sl3 documentation built on Nov. 18, 2024, 12:46 a.m.