Create a term-document matrix from files
- by Joe
I have a set of files from example001.txt to example100.txt. Each file contains a list of keywords from a superset (the superset is available if we want it).
So example001.txt might contain
apple
banana
...
otherfruit
I'd like to be able to process these files and produce something akin to a matrix so there is the list of examples* on the top…