Edited: I want to tabulate the results of some stat tests into data frames. I need to use long-form data and I need to use a group_by. I have included some data and the code