Say I have list x(a vector of character names) and list y(a vector of data). I want to run each element of data within y through a loop, but I want it to print the element from vector x that has the corresponding element position as the data element y. I keep running into the problem where for element y, all elements of x are looped. I have not yet been able to find a way to correspond x to y, or to have R recognize, say, x+1=y(essentially looking for an equivalent of how this is done in SVL for R).