trinker / qdap

Quantitative Discourse Analysis Package: Bridging the gap between qualitative data and quantitative analysis
http://cran.us.r-project.org/web/packages/qdap/index.html
175 stars 44 forks source link

mcsv_w error or word_stats output #126

Closed trinker closed 11 years ago

trinker commented 11 years ago

See:

x <- word_stats(mraja1spl$dialogue, mraja1spl$person)
mcsv_w(x, dir="foo")
> mcsv_w(x, dir="foo")
Error in names(x2)[(len1 + 1):(len1 + len2)] <- names(unlisted.x2) : 
  replacement has length zero
trinker commented 11 years ago

question_type also throws and error and should be corrected:

library(qdap)
setwd(dt)

x <- question_type(DATA$state, DATA$person)
out1 <- with(mraja1spl, question_type(dialogue, person))

mcsv_w(x, out1, CO2, dir="foo")
> mcsv_w(x, out1, CO2, dir="foo2")
Error in sum(whichlist) : invalid 'type' (list) of argument