R: inspect Document Term Matrix results in Error: Repeated indices currently not allowed
问题 I have the following dummy data: final6 <- data.frame(docname = paste0("doc", 1:6), articles = c("Catalonia independence in matter of days", "Anger over Johnson Libya bodies comment", "Man admits frenzied mum and son murder", "The headache that changed my life", "Las Vegas killer sick, demented - Trump", "Instagram baby photo scammer banned") ) And I want to create a DocumentTermMatrix with reference to document names (that I could later link to the original article text). To achieve this, I