data_builtin
Load datasets included with R or installed packages, such as mtcars or iris, to test analyses and demonstrate methods before applying them to real data.
Instructions
Load a dataset that ships with R or with an installed package (mtcars, iris, ToothGrowth, sleepstudy from lme4, bfi from psych, lung from survival, HolzingerSwineford1939 from lavaan, ...). Useful for demonstrating a method or checking that an analysis works before running it on real data.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Name in the session (defaults to the dataset name). | |
| dataset | Yes | Dataset name, e.g. 'mtcars' or 'sleepstudy'. | |
| package | No | Package that ships the dataset, e.g. 'lme4'. |