mallet.read.dir | R Documentation |
This function takes a directory path as its only argument and returns a
data.frame
with two columns: <id> & <text>,
which can be passed to the mallet.import
function.
This data.frame
has as many rows as there are files in the Dir
.
mallet.read.dir(Dir)
Dir |
The path to a directory containing one document per file. |
a data.frame
with file id
and text
content.
This function was contributed to RMallet by Dan Bowen.
Dan Bowen
mallet.import
## Not run: directory <- system.file("stoplists", package = "mallet") stoplists <- mallet.read.dir(directory) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.