powered by
It acts similiarly to Excel's MATCH function. It matches the value in the array.
MATCH(lookup_value, lookup_array)
what value to lookup
Where should it lookup the value
This example gives us the first index of an array where Species is virginica. Function will always return numeric.
# NOT RUN { MATCH("virginica",iris$Species) # }
Run the code above in your browser using DataLab