[r] Mean of a column in a data frame, given the column's name