Dear Ygor,
Thank yuo very much for your script. Especially the split("10 20 5",arr) option was very useful and gave me flexibility. However, is there an option to print out the average of the first column (time series) next to the average of the second column (dependent variable)...