Description Usage Arguments Value Examples
Read in multiple files from a directory and create a
base::data.frame()
.
1 2 3 4 5 6 7 8 9 10 |
path |
Path to the directory. |
pattern |
An optional regular expression. Only file names which match the regular expression will be returned. |
doc.col |
A string naming the document columns (i.e., file names sans file extension). |
all.files |
Logical. If |
recursive |
Logical. Should the listing recurse into directories? |
ignore.case |
logical. If |
verbose |
Logical. Should Each iteration of the read-in be reported. |
... |
Other arguments passed to read_document functions. |
Returns a base::data.frame()
with file names as a document
column and content as a text column.
1 2 3 4 5 | ## Not run:
read_dir(system.file("docs/Maas2011/pos", package = "textreadr"))
read_dir(system.file("docs/Maas2011", package = "textreadr"), recursive=TRUE)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.