Now I'm using R to find some of my indexing.
I use 2 for loop, and they are all needed.
So
for (n in 1:5){
for(m in 1:15){
if(length(grep(m,save))==1){ do sth
}
}
}
save is list which contains 5 lists with numeric like this:
[[1]] [1] 1 4 8
[[2]] [2] 2 5 9
[[3]] [1] 3 6 10
[[4]] [1] 11 12
[[5]] [1] 7 13 15
Now I want to find match the number in o with numeric in save
What I mean is when o is 1,4,8 then it matched when n is 1! (list 1) but the problem is when m is 1 when n is 4 (list 4) 11, 12 also be found because it contains exactly '1' in 11, 12!
But I want only exactly find '1' not '11', '121', '333331'.. like that.
How can I do this with my code..? Indexing using two separate procedure is needed for me.
So if you know any answer about it, please give me a reply. Thank you