DirSource | R Documentation |
Create a directory source.
DirSource(directory = ".",
encoding = "",
pattern = NULL,
recursive = FALSE,
ignore.case = FALSE,
mode = "text")
directory |
A character vector of full path names; the default
corresponds to the working directory |
encoding |
a character string describing the current encoding. It is
passed to |
pattern |
an optional regular expression. Only file names which match the regular expression will be returned. |
recursive |
logical. Should the listing recurse into directories? |
ignore.case |
logical. Should pattern-matching be case-insensitive? |
mode |
a character string specifying if and how files should be read in. Available modes are:
|
A directory source acquires a list of files via dir
and
interprets each file as a document.
An object inheriting from DirSource
, SimpleSource
, and
Source
.
Source
for basic information on the source infrastructure
employed by package tm.
Encoding
and iconv
on encodings.
DirSource(system.file("texts", "txt", package = "tm"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.