tm (version 0.6-1)

URISource: Uniform Resource Identifier Source

Description

Create a uniform resource identifier source.

Usage

URISource(x, encoding = "", mode = "text")

Arguments

x
A character vector of uniform resource identifiers (URIs.
encoding
A character string describing the current encoding. It is passed to iconv to convert the input to UTF-8.
mode
a character string specifying if and how URIs should be read in. Available modes are: [object Object],[object Object],[object Object]

Value

Details

A uniform resource identifier source interprets each URI as a document.

See Also

Source for basic information on the source infrastructure employed by package tm.

Encoding and iconv on encodings.

Examples

Run this code
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))

Run the code above in your browser using DataCamp Workspace