I\'m renaming the majority of the variables in a data frame and I\'m not really impressed with my method.
Therefore, does anyone on SO have a smarter or faster way t
names(df)[match( c('old_var1','old_var2'), names(df) )]=c('new_var1', 'new_var2')