Closed sbor23 closed 6 years ago
LIWCalike is deprecated; please try installing quanteda.dictionaries instead, where you will find a liwcalike()
function that works.
Wow ok that's unexpected news. Could you please put a disclaimer in the Readme.md and the project description then? We could have totally avoided bothering with LIWCalike in the first place if we knew...
Anyway, thanks for you work and integrating it into quanteda!
We found that
liwcalike
produces a data.frame that cannot be converted to a matrix in a straight-forward fashion and thus breaks the export of csv files. This is because the function creates the WPS column, which itself contains 2 lists (document, meanSentenceLength).str(dict_analysis)
Trying to export it leads to a crash in as.matrix.data.frame: https://github.com/wch/r-source/blob/af7f52f70101960861e5d995d3a4bec010bc89e6/src/library/base/R/dataframe.R#L1468
temp <- as.matrix(dict_analysis[4])
Similar problems exist with simple dplyr usage: