Skip to content
Prev 5538 / 7420 Next

Capture data

turn TrapID into a matrix, with rows and columns = the numbers of letter codes and number codes respectively.
Use apply() to reverse the columns
turn it back into a vector

Three lines of code

I?ll leave it to you to figure the details.