Make codebook table for averages tidy data set