Changed the name of mean, median, etc. to vectorMean, vectorMedian etc to be more clear and added a aggregateTable to manipulateTable