spss_autorecode
Recode string or categorical variables into consecutive integer codes in SPSS, using ascending or descending order to prepare data for analysis.
Instructions
Automatically recode string/categorical values into consecutive integers. order: ASCENDING (default) or DESCENDING. 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>",
"variables": "<variables>"
},
"name": "spss_autorecode"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| order | No | ASCENDING | |
| file_path | Yes | ||
| new_names | No | ||
| variables | Yes | ||
| output_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |