I have two data frames as input:

> small  Position
1        6
2       14
3        1


> lookup_table  Start Stop Value
1     1    5     a
2     6   10     b
3    11   15     c

And I want the following output:

> outcome  Position Value
1        6     b
2       14     c
3        1     a

What is some R code that I can write to accomplish this task?

Thank you,

Elena

	[[alternative HTML version deleted]]

