spss_select_if
Keeps only records that satisfy a condition and saves the filtered dataset as a new .sav file. Provide a file path, condition, and optional output path.
Instructions
Permanently keep only cases matching a condition: SELECT IF (condition). Use output_path to save the filtered result as a new .sav file. Requires IBM SPSS Statistics.
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": {
"file_path": "<file_path>",
"condition": "<condition>"
},
"name": "spss_select_if"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| condition | Yes | ||
| file_path | Yes | ||
| output_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |