These functions convert data frames stored in the list-column 'comment' of the data frame returned by post2df to corpus objects in corpus, VCorpus, and PCorpus.

comment2qcorp(df)

comment2tmcorp(df, PCorpus = FALSE, ...)

Arguments

df

Data frame. A data frame generated by post2df.

PCorpus

Logical. Whether to contruct corpus with PCorpus. If FALSE, uses VCorpus. Defaults to FALSE.

...

Additional arguments passed on to corpus, VCorpus, or PCorpus.

See also