docMatrix2              package:RMeCab              R Documentation

_d_o_c_M_a_t_r_i_x_2

_D_e_s_c_r_i_p_t_i_o_n:

     creates a document-term matrix out of a file or  all textfiles in
     a given directory.

_U_s_a_g_e:

     docMatrix2(directory, pos= c("名詞","形容詞"),  minFreq = 1, sym = 0, weight = "no", kigo = "記号")

_A_r_g_u_m_e_n_t_s:

directory: directory path or a filename (may include path).

     pos: specifies which parts of speech should be extracted. 

     sym: if total must include number of symbols, set sym = 1. Default
          being 0

 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: 

_D_e_t_a_i_l_s:

     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.

_V_a_l_u_e:

docMatrix2: the document-term matrix 

_A_u_t_h_o_r(_s):

     Motohiro ISHIDA ishida.motohiro@gmail.comt

