Skip to contents

[Experimental]

Retrieves the archive's full descriptive record for one study.

Usage

knbs_survey_metadata(
  survey,
  include = c("overview", "scope", "sampling", "collection", "processing", "access",
    "citation"),
  source = NULL,
  cache = knbs_option("cache"),
  refresh = FALSE
)

Arguments

survey

A study identifier, or enough of its title to identify it unambiguously.

include

Which descriptive sections to keep. The underlying records are DDI documents, in which sampling, collection and processing all live in one method section, so asking for any of them returns that section.

source

Source id.

cache

Whether to use the local cache.

refresh

Whether to bypass any cached response.

Value

A knbs_survey metadata object. Use knbs_metadata() to inspect it and knbs_cite() to cite it.

Examples

if (FALSE) { # interactive()
meta <- knbs_survey_metadata("KEN-KNBS-KIHBS-2015-2016-v01")
knbs_cite(meta)
}