I have created a TermDocumentMatrix that looks something like this:
>inspect(tdm[1:6,1:3])   
Terms       Doc1.txt   Doc2.txt    Doc3.txt
abcd          1           0          0
abandon       0           1          1
qrd           0           0          1
abductor      1           0          0 
plo           1           1          0
man           0           1          0 
I also have a list of words something like:
>dict
abductor
abandon
man
mammoth
Now how do I subset the TermDocumentMatrix rows so that it looks like
Terms       Doc1.txt   Doc2.txt    Doc3.txt
abandon       0           1          1
abductor      1           0          0 
I am only able to check the row names in matrix with the 'dict' list, but I'm unable to subset them
 
     
    