How to show corpus text in R tm package?

前端 未结 8 841
一个人的身影
一个人的身影 2020-12-14 23:49

I\'m completely new in R and tm package, so please excuse my stupid question ;-) How can I show the text of a plain text corpus in R tm package?

I\'ve loaded a corpu

8条回答
  •  太阳男子
    2020-12-15 00:12

    From the tm Vignette, this works:

    writeLines(as.character(doc.corpus[[8]]))

    Where '8' is whatever element number you wish

提交回复
热议问题