transformed tidy data set into summary data format