Examples for 'tm::Docs'


Access Document IDs and Terms

Aliases: Docs nDocs nTerms Terms

Keywords:

### ** Examples

data("crude")
tdm <- TermDocumentMatrix(crude)[1:10,1:20]
Docs(tdm)
 [1] "127" "144" "191" "194" "211" "236" "237" "242" "246" "248" "273" "349"
[13] "352" "353" "368" "489" "502" "543" "704" "708"
nDocs(tdm)
[1] 20
nTerms(tdm)
[1] 10
Terms(tdm)
 [1] "..."         "\"(it)"      "\"demand"    "\"expansion" "\"for"      
 [6] "\"growth"    "\"if"        "\"is"        "\"may"       "\"none"     

[Package tm version 0.7-15 Index]