I\'m trying to use the match function in function with a for loop and it isn\'t working. Here is an example of the exact error I\'m getting.
a <- c(1:10) b