createTermDocumentMatrix: Create Term-Document Matrix

Description Usage Arguments Value Author(s) References

View source: R/createWordCloud.R

Description

Function to create a term-document matrix based on a text file/object.

Usage

1
2
createTermDocumentMatrix(x, type = c("text", "url", "file"),
  lang = "english", excludeWords = NULL, textStemming = FALSE)

Arguments

x

character string (plain text, web url, txt file path)

type

specify whether x is a plain text, a web page url or a file path

lang

the language of the text

excludeWords

a vector of words to exclude from the text

textStemming

reduces words to their root form

Value

a list(tdm, freqTable)

Author(s)

Gareth Burns

References

http://www.sthda.com/english/wiki/word-cloud-generator-in-r-one-killer-function-to-do-everything-you-need


GABurns/CurriculumVitae documentation built on Oct. 30, 2019, 6:22 p.m.