Mean from a frequency table including grouped data