| DirSource {tm} | R Documentation |
Constructs a directory source.
DirSource(directory = ".", encoding = "unknown", pattern = NULL,
recursive = FALSE, ignore.case = FALSE)
directory |
A character vector of full path names; the default corresponds to the working directory |
encoding |
encoding to be assumed for input strings. It is used to mark character strings as known to be in Latin-1 or UTF-8: it is not used to re-encode the input. |
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? |
An object of class DirSource which extends the class
Source representing a directory. Each file in this directory is
considered to be a document.
Ingo Feinerer
getSources to list available sources. Encoding on encodings in R.
DirSource(system.file("texts", "txt", package = "tm"))