title: Unused Argument error in R using tm for word frequency matrix?
body: <p>I'm new to programming and R. I'm trying to use the wordfish function in the Austin package. I created a term document matrix from a corpus but cannot successfully use the wordfish command: </p>
  
  <pre><code>    library(tm)
      library(austin)
      text.corpus.format&lt;-VCorpus(DirSource("MyDirectory"))
  
  #create Word Frequency Matrix
      wordfreqmatrix&lt;-TermDocumentMatrix(text.corpus.format)
      wcdata&lt;-as.matrix(wordfreqmatrix) # CONVERT WORD COUNT MATRIX FOR USE WITH WORDFISH
      wcdata&lt;-t(wcdata) # TRANSPOSE TERM DOC MATRIX
      as.matrix(as.data.frame(wcdata)) # ASSIGN DOC TITLES TO MATRIX
      rownames(wcdata)&lt;-lapply(text.corpus.format,Author)
  
  #problematic command results: 
  wordfish(input=wcdata,dir=c(221,223))
      Error in wordfish(input = wcdata, dir = c(221, 223)) : 
      unused argument (input = wcdata)
  </code></pre>
  
  <p>The correct usage for the wordfish function is wordfish(wfm,dir=c(1,10)). I thought I defined wcdata as a word frequency matrix, but I must have done something wrong. Any insight is greatly appreciated!</p>