DocSet {ssrch}R Documentation

constructor for DocSet

Description

constructor for DocSet

Usage

DocSet(
  kw2docs = new.env(hash = TRUE),
  docs2recs = new.env(hash = TRUE),
  docs2kw = new.env(hash = TRUE),
  titles = character(),
  urls = character(),
  doc_retriever = function(...) NULL
)

Arguments

kw2docs

an environment mapping keywords to documents

docs2recs

an environment mapping document identifiers to records

docs2kw

an environment mapping documents to keywords

titles

a named character vector with titles; names are document identifiers

urls

a named character vector with document-associated URLs; names are document identifiers

doc_retriever

a function that, given a document identifier, will produce the document

Value

instance of DocSet

Note

Titles must be bound in post-hoc. parseDoc produces data including parsed titles but does not bind the title into the resulting object.

Examples

getClass("DocSet")

[Package ssrch version 1.8.1 Index]