updated R script to prepend column names with 'm' to indicate they are calculated means columns