| readRCV1 | R Documentation |
Read in a Reuters Corpus Volume 1 XML document.
readRCV1(elem, language, id)
readRCV1asPlain(elem, language, id)
elem |
a named list with the component |
language |
a string giving the language. |
id |
Not used. |
An XMLTextDocument for readRCV1, or a
PlainTextDocument for readRCV1asPlain, representing the
text and metadata extracted from elem$content.
Lewis+Yang+Rose:2004
Reader for basic information on the reader infrastructure
employed by package tm.
f <- system.file("texts", "rcv1_2330.xml", package = "tm")
f_bin <- readBin(f, raw(), file.size(f))
rcv1 <- readRCV1(elem = list(content = f_bin), language = "en", id = "id1")
content(rcv1)
meta(rcv1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.