timeAverage function

Function to calculate time averages for data frames