mdload: Load a bundled dataset by slug

View source: R/data_store.R

mdloadR Documentation

Load a bundled dataset by slug

Description

Reads the table's CSV and applies the column names and classes from the bundled schema, so the result is the same typed data frame on every platform regardless of how read.csv() would have guessed. Every table also ships as a Parquet file holding the same typed frame; format = "parquet" reads that copy instead. The first load of a table is cached for the session; later calls return the cached copy unless refresh = TRUE.

Usage

mdload(slug, refresh = FALSE, format = c("csv", "parquet"))

Arguments

slug

Dataset slug; see the slug column of mdcat().

refresh

Re-read the file even if a cached copy exists.

format

"csv" (default) or "parquet": which shipped copy to read. Both give the same data frame.

Value

A data frame.

Examples

d <- mdload("arsau_2023_uof_main_records")
str(d[, 1:4])

rmoriedata documentation built on Nov. 12, 2026, 9:06 a.m.