read_variables
Retrieve variable values from STATISTICA .sta/.stw files, with options for sheets, variables, offsets, and limits. Numeric columns return vectors, text columns strings, and missing values as null.
Instructions
Read variable values. Numeric columns are read vectorized; text columns as strings. Missing values are returned as null.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path to a .sta or .stw file. | |
| limit | No | Maximum number of cases to read. | |
| sheet | No | Sheet name or 1-based index. | |
| attach | No | Attach to the already-running STATISTICA instance and edit it live (no new process, the app is not closed). | |
| offset | No | First case to read (1-based). Default 1. | |
| variables | No | Variable names (short or clean) or 1-based indices. Omit to read every variable. |