names {tm}R Documentation

Row, Column, Dim Names, Document IDs, and Terms

Description

Retrieve the row names, column names, dimnames, document IDs, and terms of a term-document matrix or document-term matrix.

Arguments

x Either a term-document matrix or document-term matrix.

Examples

data("crude")
tdm <- TermDocumentMatrix(crude)[1:10,1:20]
rownames(tdm)
colnames(tdm)
dimnames(tdm)
Docs(tdm)
Terms(tdm)

[Package tm version 0.3-4.1 Index]