matchNumbers function

Match numbers to observations