Create a mapping algorithm in R
===

I have a dataset comprising of 500 columns.I want to create a new dataset with standard columns. I want to create a mapping algorithm for this.
Example:

Existing dataset has columns like date,id_customer,id_trans etc. 
Names of the columns in the new standard dataset are date, customer_id, transaction_id etc.

I want to create a mapping algorithm such that observations of id_customer in the existing dataset are copied into customer_id of the standard dataset.

I want a standard mapping algorithm such that observations from any new data with different column names (say date,cust.id,trans.id etc.) can be copied into the standard dataset.

How do I develop a mapping algorithm for this.