I have a list of files with similar tables but different dimensions. I want to do a for loop in r to calculate the mean and SD for the cost values inside rows/columns, last