R beginner here, need ur help. Lets say we have a matrix like this one:
1 2 3
1 1 0 0
2 0 1 0
3 0 0 1
4 1 1 0
5 1 0 1
6 0 1 1
7 1 1 1
Next we have a certain vector f.e. (1, 0, 1), wich would be matching row 5. Whats the best way to get the index 5 from the matrix given that vector? I have allready read the questions R - fastest way to select the rows of a matrix that satisfy multiple conditions and In R, select rows of a matrix that meet a condition but i think the situation differs in this case. Thanx for your input!