assign_fcts function

Assign treatments or units to units