dibble_by function

Constructs a dibble by one or more variables