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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"dataset": "<dataset>"
},
"name": "data_builtin"
}
}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'. |