prepBoxPlots function

Prepare data for box plots