#%i9in% assumes both test code(s) and reference set of codes are \emph{short}
"1024" %i9in% "102"
"1024" %i9in% c("102","1025")
c("102", "1024","1025") %i9in% "102"
c("102", "1024","1025") %i9in% c("1024", "1025")
c("102", "1024","1025") %i9in% c("102", "1024", "1025")
Run the code above in your browser using DataLab