select_cases
Filter STATISTICA data by a condition, keeping only matching rows and dropping the rest. Supports numeric and text comparisons, including missing values.
Instructions
Keep only the rows matching a condition and drop the rest (all columns are rewritten). Supports numeric and text comparisons; missing values can be matched with op "missing".
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| op | Yes | Comparison operator. Default eq. | |
| path | Yes | Absolute path to the source file. | |
| save | No | Optional destination path to persist the result as .sta. | |
| sheet | No | ||
| value | No | Comparison value for gt/ge/lt/le/eq/ne. | |
| attach | No | Attach to the already-running STATISTICA instance and edit it live (no new process, the app is not closed). | |
| values | No | Value list for in/notin. | |
| variable | Yes | Variable the condition is evaluated on. | |
| keepCaseNames | No | Carry case names to the surviving rows. Default true. |