Hello everyone!
I have a problem with the following case:
I used the function Match (value, vector, "near") to find the row in which the vector has the wanted value.
But instead of finding a one value, I would like to create a function that would find a series of rows (Please see the attachment) But the function I created does not do the trick. I would appreciate any help
Solved! Go to Solution.
Sorry, already solved it. Forgot to put "|Match |"
But having defined the vector ff which considers the specific rows where values from vectror d match vector f. Is it possible to create a new vector c which would have rows as those defined in vector ff ?
In other words the first row of vector c : C_0 would be equal to C_ff0, where ff_0 is the first row of vector ff.,
C_1 would be equal to C_ff_1, C_2 equal to C_ff_2 and so on
Here is an utility function which does the job using vectorization:
For more flexibility you may add the string modifier ("near" in this case) as third function argument of "MatchIt".
Thank you !!