Description Usage Arguments Details Value See Also Examples
Create a uniform resource identifier source.
1 |
x |
A character vector of uniform resource identifiers (URIs. |
encoding |
A character string describing the current encoding. It is
passed to |
mode |
a character string specifying if and how URIs should be read in. Available modes are:
|
A uniform resource identifier source interprets each URI as a document.
An object inheriting from URISource
, SimpleSource
,
and Source
.
Source
for basic information on the source infrastructure
employed by package tm.
Encoding
and iconv
on encodings.
1 2 3 4 | loremipsum <- system.file("texts", "loremipsum.txt", package = "tm")
ovid <- system.file("texts", "txt", "ovid_1.txt", package = "tm")
us <- URISource(sprintf("file://%s", c(loremipsum, ovid)))
inspect(VCorpus(us))
|
Loading required package: NLP
<<VCorpus>>
Metadata: corpus specific: 0, document level (indexed): 0
Content: documents: 2
[[1]]
<<PlainTextDocument>>
Metadata: 7
Content: chars: 3163
[[2]]
<<PlainTextDocument>>
Metadata: 7
Content: chars: 676
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.