map_data function

Create a mapping between two variables