I didn't combine data. It was already in the correct format. I can't say what you should do because I do not know what format your data currently uses. I used the Big Class sample data set. Here it is:
I analyzed the distribution of weight and used sex for the grouping variable.
Please let me know if this issue of preparing the data is still unclear.