match function won't accept 3 arguments
Hello all
I'm trying to get the indices of values in a vector that are less than or equal to a threshold value. From the documentation, it seems that I should use
match(threshold, vector, "leq")
but this gives the error "This function accepts at most 2 arguments but is applied to 3". The relevant code snippet is below.
I've looked at the docs and forums but can't find any code examples using the third argument as specified in the docs. I've tried "leq" with and without the quotes.
I would really appreciate any help! What am I doing wrong?

