DocSet: constructor for DocSet

Description Usage Arguments Value Note Examples

View source: R/twolev.R

Description

constructor for DocSet

Usage

1
2
3
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

1
getClass("DocSet")

ssrch documentation built on Nov. 8, 2020, 5:39 p.m.