Skip to contents

Returns the names of every IRW table in one collection, so they can be passed straight to irw_fetch(), irw_save_bibtex() or any other vectorised accessor.

Usage

irw_collection(name, quiet = FALSE)

Arguments

name

Character. A single collection name, e.g. "big_five".

quiet

Logical. Suppress the definition/coverage message.

Value

A sorted character vector of table names.

Details

Prints the collection's definition and, when the collection does not cover the whole warehouse, says so — see the Coverage section of irw_collections(). Suppress with quiet = TRUE.

Examples

if (FALSE) { # \dontrun{
tabs <- irw_collection("depression")
irw_save_bibtex(tabs, output_file = "depression.bib")

# Compose with the numeric filters
irw_filter(collection = "depression", n_participants = c(500, Inf))

# Cross-collection: math assessments administered in booklets
intersect(irw_collection("math"), irw_collection("multistage"))
} # }