Add a convenience mean function for building datasets.