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, sim = FALSE)
Arguments
- name
Character vector of one or more dataset names (IRW table IDs).
- sim
Logical. If TRUE, fetch from the IRW simulation dataset. Defaults to FALSE.
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("environment_ltm")
irw_fetch("gilbert_meta_3", sim = TRUE)
} # }