Learn R Programming

⚠️There's a newer version (0.7-20) of this package.Take me there.

tm (version 0.7-19)

Text Mining Package

Description

A framework for text mining applications within R.

Copy Link

Version

Install

install.packages('tm')

Monthly Downloads

29,612

Version

0.7-19

License

GPL-3

Maintainer

Kurt Hornik

Last Published

August 13th, 2026

Functions in tm (0.7-19)

getTokenizers

Tokenizers
getTransformations

Transformations
crude

20 Exemplary News Articles from the Reuters-21578 Data Set of Topic crude
content_transformer

Content Transformers
foreign

Read Document-Term Matrices
inspect

Inspect Objects
plot

Visualize a Term-Document Matrix
findFreqTerms

Find Frequent Terms
TermDocumentMatrix

Term-Document Matrix
meta

Metadata Management
readDOC

Read In a MS Word Document
readXML

Read In an XML Document
removeNumbers

Remove Numbers from a Text Document
stripWhitespace

Strip Whitespace from a Text Document
termFreq

Term Frequency Vector
stemCompletion

Complete Stems
removeWords

Remove Words from a Text Document
readTagged

Read In a POS-Tagged Word Text Document
readReut21578XML

Read In a Reuters-21578 XML Document
removePunctuation

Remove Punctuation Marks from a Text Document
removeSparseTerms

Remove Sparse Terms from a Term-Document Matrix
readRCV1

Read In a Reuters Corpus Volume 1 Document
stemDocument

Stem Words
stopwords

Stopwords
readPlain

Read In a Text Document
readDataframe

Read In a Text Document from a Data Frame
tm_term_score

Compute Score for Matching Terms
tm_reduce

Combine Transformations
writeCorpus

Write a Corpus to Disk
weightBin

Weight Binary
weightTfIdf

Weight by Term Frequency - Inverse Document Frequency
tokenizer

Tokenizers
readPDF

Read In a PDF Document
weightSMART

SMART Weightings
weightTf

Weight by Term Frequency
tm_filter

Filter and Index Functions on Corpora
tm_map

Transformations on Corpora
DirSource

Directory Source
Corpus

Corpora
PCorpus

Permanent Corpora
Reader

Readers
SimpleCorpus

Simple Corpora
DataframeSource

Data Frame Source
PlainTextDocument

Plain Text Documents
Source

Sources
TextDocument

Text Documents
Docs

Access Document IDs and Terms
WeightFunction

Weighting Function
tm_combine

Combine Corpora, Documents, Term-Document Matrices, and Term Frequency Vectors
URISource

Uniform Resource Identifier Source
ZipSource

ZIP File Source
XMLSource

XML Source
VectorSource

Vector Source
XMLTextDocument

XML Text Documents
Zipf_n_Heaps

Explore Corpus Term Frequency Characteristics
acq

50 Exemplary News Articles from the Reuters-21578 Data Set of Topic acq
VCorpus

Volatile Corpora
findMostFreqTerms

Find Most Frequent Terms
findAssocs

Find Associations in a Term-Document Matrix
hpc

Parallelized ‘lapply’