
246 Text Mining and Visualization: Case Studies Using Open-Source Tools
map to the requirements stated in m. More information on this can be found at http:
//cran.r-project.org/web/packages/tm/vignettes/extensions.pdf.
#Converting database tabular structure for text documents
m <- list(ID = "file_name", Content = "text")
myReader <- readTabular(mapping = m)
The next stage then is to create the corpus. Whereas in the previous example a
DirSource command was used, this time the DataframeSource command is used as
the data in the database is stored as a data frame. This in combination with the previously
created myReader ensures that the corpus is created. ...