Fix midpoint means

Used wrong function so it wasn't calculating the mean age for each bin. Switched to rowMeans to calculate each bin midpoint.