Skip to contents

Retrieves one or more datasets from IRW and returns them as tibbles. If the dataset includes a character resp column, the function attempts to coerce it into numeric. Strings like "NA", "", and NA are treated as missing values. A warning is issued only if other non-numeric values are encountered.

Usage

irw_fetch(name)

Arguments

name

Character vector of one or more dataset names (IRW table IDs).

Value

If a single name is provided, returns a tibble. If multiple, returns a named list of tibbles (or error messages, if retrieval failed).

Examples

if (FALSE) { # \dontrun{
irw_fetch("alcoholresearch_sumscore")
} # }