I have 2 largish dataframes and I want to search through the larger one and then replace a value based on a test of two variables (an integer and a char) between the two. As shown.
But it is taking a massive amount of time. Is there a way in R to speed this up and to get a good display of actual progress!
for (i in 1:146385) {
progress(i)
for (j in 1:2078) {
if (AltOne[i,4] == Alt1codes[j,1] & AltOne[i,7] == Alt1codes[j,2]) {AltOne[i,8] <- Alt1codes [j,6]}
} }