R text file and text mining…how to load data

后端 未结 6 1090
星月不相逢
星月不相逢 2020-12-13 10:51

I am using the R package tm and I want to do some text mining. This is one document and is treated as a bag of words.

I don\'t understand the documenta

6条回答
  •  渐次进展
    2020-12-13 11:36

    Can't you just use the function readPlain from the same library? Or you could just use the more common scan function.

    mydoc.txt <-scan("./mydoc.txt", what = "character")
    

提交回复
热议问题