register_data_dictionary
Record a dataset's data dictionary by defining variable names, types, labels, unique values, and units to ensure consistent usage across scripts.
Instructions
Record a dataset's data dictionary — one entry per variable.
Captures the variable names, types, labels, **unique values / factor levels**
and units, so future scripts use the exact same names and treatments.
Args:
dataset_name: Name of the dataset (e.g. "hat_cases_2015_2023").
variables: List of variable entries. Each is an object with any of:
name (required), type, label, unique_values, units, notes.
project_id: Project this dataset belongs to. Optional.
dataset_path: Where the dataset lives on disk. Optional.Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dataset_name | Yes | ||
| variables | Yes | ||
| project_id | No | ||
| dataset_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |