Potential fix for issue #21: incorrect grouping (needs more testing)

This code failed to merge ‘results’ with ’t’ data frames properly
because results$Response is an int and not a factor. See issue #21 for
more details about the problem.