Construct a source for an input containing a set of articles exported from LexisNexis in the HTML format.
LexisNexisSource(x, encoding = "UTF-8")
Either a character identifying the file or a connection.
A character giving the encoding of
This function imports the body of the articles, but also sets several meta-data variables on individual documents:
datetimestamp: The publication date.
heading: The title of the article.
origin: The newspaper the article comes from.
intro: The short introduction accompanying the article.
section: The part of the newspaper containing the article.
subject: One or several keywords defining the subject.
coverage: One or several keywords identifying the covered regions.
company: One or several keywords identifying the covered companies.
stocksymbol: One or several keywords identifying the stock exchange
symbols of the covered companies.
industry: One or several keywords identifying the covered industries.
type: The type of source from which the document originates.
wordcount: The number of words in the article.
publisher: The publisher of the newspaper.
rights: The copyright information associated with the article.
language: This information is set automatically if
readerControl = list(language = NA) is passed (see the example below).
Else, the language specified manually is set for all articles. If omitted,
the default, "en", is used.
Please note that dates are not guaranteed to be parsed correctly if the machine from which the HTML file was exported uses a locale different from that of the machine where it is read.
Currently, only HTML files saved in English and French are supported. Please send the maintainer examples of LexisNexis files in your language if you want it to be supported.
An object of class
LexisNexisSource which extends the class
Source representing set of articles from LexisNexis.
readLexisNexisHTML for the function actually parsing
getSources to list available sources.
1 2 3 4 5 6 7 8 9 10