docMatrix2 {RMeCab} | R Documentation |
creates a document-term matrix out of a file or all textfiles in a given directory.
docMatrix2(directory, pos= "Default", minFreq = 1, weight = "no", kigo = 0, co = 0)
directory |
directory path or a filename (may include path). |
pos |
specifies which parts of speech should be extracted. Default being noun and adjective. |
minFreq |
words of a document appearing less than minDocFreq within that document will be ignored. |
weight |
Calculates a weighted document-term matrix with some options. |
kigo |
if total must include number of symbols, set sym = 1. Default being 0 |
co |
retrieve co-ocurrence term matrix. default being = 0 |
All textfiles in the specified directory are read in and a matrix is composed. Every cell of the matrix shows the actual frequency of each word.
docMatrix2 |
the document-term matrix |
Motohiro ISHIDA ishida.motohiro@gmail.comt