ELSE應該是變數的最後一個規格。 重新編碼INTO另一個變數時,未指定的值會設為系統遺漏值或字串為空白。 COPY會抄寫原始值而不重新編碼它們。 需要INTO才能將字串變數重新編碼為數值變數,或將數值變數重新編碼為字串變數。 數值變數 (RECODE 指令) 字串變數 (RECODE 指令) 上層主題:RECODE...
SPSS Recode Syntax Example 6*1. Clone values into new variable.recode v10 (else = copy) into rec_v10.*2. Clone dictionary onto new variable.apply dictionary from * /source variables = v10 /target variables = rec_v10.*3. Check.crosstabs v10 by rec_v10 /cells count /missing include...
ELSE应该是变量的最后一个规范。 当重新编码INTO另一个变量时,未指定的值将设置为系统缺失或字符串为空。 COPY复制原始值而不对其进行重新编码。 需要INTO才能将字符串变量重新编码为数字变量或将数字变量重新编码为字符串变量。 数字变量 (RECODE 命令) 字符串变量 (RECODE 命令) 父主题:RECODE...
INTO is required to recode a string variable into a numeric variable or a numeric variable into a string variable. Numeric Variables (RECODE command) String Variables (RECODE command) Parent topic: RECODE Related information RECODE Overview (RECODE command) Operations (RECODE command) Examples (...
Syntax for the RECODE command can be generated from the Recode into Same Variables dialog or the Recode into Different Variables dialog. Examples RECODE V1 TO V3 (0=1) (1=0) (2,3=-1) (9=9) (ELSE=SYSMIS). RECODE STRNGVAR ('A','B','C'='A')('D','E','F'='B')(ELSE='...
Syntax for theRECODEcommand can be generated from theRecode into Same Variablesdialog or theRecode into Different Variablesdialog. Examples RECODE V1 TO V3 (0=1) (1=0) (2,3=-1) (9=9) (ELSE=SYSMIS). RECODE STRNGVAR ('A','B','C'='A')('D','E','F'='B')(ELSE=' ')....
INTO is required to recode a string variable into a numeric variable or a numeric variable into a string variable. Numeric Variables (RECODE command) String Variables (RECODE command) Parent topic: RECODE Related information RECODE Overview (RECODE command) Operations (RECODE command) Examples (...
Syntax for theRECODEcommand can be generated from theRecode into Same Variablesdialog or theRecode into Different Variablesdialog. Examples RECODE V1 TO V3 (0=1) (1=0) (2,3=-1) (9=9) (ELSE=SYSMIS). RECODE STRNGVAR ('A','B','C'='A')('D','E','F'='B')(ELSE=' ')....
COPYreplicates original values without recoding them. INTOis required to recode a string variable into a numeric variable or a numeric variable into a string variable. Parent topic:RECODE
COPYreplicates original values without recoding them. INTOis required to recode a string variable into a numeric variable or a numeric variable into a string variable. Parent topic:RECODE