match(x, table, nomatch=NA)
x
| the values to be matched. |
table
| the values to be matched against. |
nomatch
| the value to be returned in the case when no match is found. |
x[i]
is found to equal table[j]
then the value returned in the i
-th position of the return value is
j
.
If no match is found, the value is nomatch
.