docMatrixDF {RMeCab}R Documentation

docMatrixDF

Description

creates a document-term matrix out of a column in a dataframe.

Usage

docMatrixDF( charVec = c("MeCab","CaBoCha"), pos= "Default", minFreq = 1, weight = "no", co = 0 , dic = "", mecabrc = "", etc = "")

Arguments

charVec

column of strings.

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.

co

retrieve co-ocurrence term matrix. default being = 0

dic

to specify user dictionary, e.x. ishida.dic

mecabrc

to specify mecab resource file

etc

other options to mecab

Details

column in the specified dataframe are read in and a matrix is composed. Every cell of the matrix shows the actual frequency of each word.

Value

docMatrixDF

the document-term matrix

Author(s)

Motohiro ISHIDA ishida.motohiro@gmail.comt

References

石田基広『Rによるテキストマイニング入門』森北出版 2008


[Package RMeCab version 0.98 Index]