I have the following data sets in R:
> closed
[1] 57637 31508 54113 2348 4747 68284 61779 36654 31399 54126 11232 60659 42968 56388 5114 66289 69491 45668 879 65649 71172 36120 61802 7699 70982
[26] 65720
> length(closed)
[1] 26
> stlist[1:5,]
M.Type M.Code M.Name B.Code B.Name B.Region
1 5M 1759 Istanbul 5M 110007 Taksim Ist
2 5M 62461 Edirne 5M 110007 Aysekadin Ist
3 5M 69493 Tekirdag 5M 110431 Tekirdag Ist
4 5M 7516 Ankara 5M 110548 Batikent Ank
5 5M 14148 Bursa 5M 110351 Bursa Ist
> nrow(stlist)
[1] 1830
I want to look up all values of "closed" in "stlist$M.Code" and create a new data frame which only includes the rows with the 26 "M.Code"s with all 6 columns of "stlist". How can I do that?