docMatrix {RMeCab} | R Documentation |
creates a document-term matrix out of all textfiles in a given directory.
docMatrix( mydir, pos= c("名詞","動詞","形容詞"), minFreq = 1, weight = "no") docVector( filename, pos, minFreq)
filename |
filename (may include path). |
mydir |
the directory path to textfiles. |
pos |
specifies which parts of speech should be extracted. |
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. |
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.
docVector()
is a supporting function that creates a
document-term frequency list.
docMatrix |
the document-term matrix |
Motohiro ISHIDA ishida.motohiro@gmail.comt