SPSS COMPUTE New String Variable SPSS can compute only existing string variables. For new string variables, we must first create new (empty) variables with theSTRING command. After doing so, we can set their values with COMPUTE. Like so, the syntax below creates full_name by concatenating the...
COMPUTE创建新的数字变量或修改现有字符串或数字变量的值。 COMPUTE target variable=expression 此命令不会读取活动数据集。 将存储此数据集,并使用读取数据集的下一个命令暂挂执行。 请参阅主题命令顺序以获取更多信息。 可以从计算变量对话框生成COMPUTE命令的语法。
It closely resembles the COMPUTE command in the IBM® SPSS® Statistics transformation language. The basic specification is the target variable, an equals sign, and the assignment expression. Values of the target variable are calculated according to the specification on the assignment expression. ...
If the target variable is numeric, the expression must yield a numeric value; if the target variable is a string, the expression must yield a string value. Each function must specify at least one argument enclosed in parentheses. If a function has two or more arguments, the arguments must ...
The target variable must be named first, and the equals sign is required. Only one target variable is allowed per COMPUTE command. If the target variable is numeric, the expression must yield a numeric value; if the target variable is a string, the expression must yield a string value. ...
COMPUTE target variable=expressionThis command does not read the active dataset. It is stored, pending execution with the next command that reads the dataset. See the topic Command Order for more information. Syntax for the COMPUTE command can be generated from the Compute Variable dialog....
If the target variable is numeric, the expression must yield a numeric value; if the target variable is a string, the expression must yield a string value. Each function must specify at least one argument enclosed in parentheses. If a function has two or more arguments, the arguments must ...
If the target variable is numeric, the expression must yield a numeric value; if the target variable is a string, the expression must yield a string value. Each function must specify at least one argument enclosed in parentheses. If a function has two or more arguments, the arguments must ...
COMPUTE target variable=expressionThis command does not read the active dataset. It is stored, pending execution with the next command that reads the dataset. See the topic Command Order for more information. Syntax for the COMPUTE command can be generated from the Compute Variable dialog....
By default, new computed variables are numeric. To compute a new string variable, you must specify the data type and width.Label. Optional, descriptive variable label up to 255 bytes long. You can enter a label or use the first 110 characters of the compute expression as the label.Type. ...