is_balanced function

Is data frame balanced by group?