= SPSS Compute = The '''`COMPUTE`''' command assigns a value to a variable. <> ---- == Usage == {{{ compute foo = 1. compute bar = ''. }}} If a string literal or string expression differs in length compared to the target variable, it is truncated or padded with space characters as needed. ---- == Data Model == The `COMPUTE` command is queued as a pending transformation. ---- == See also == [[https://www.gnu.org/software/pspp/manual/html_node/COMPUTE.html|PSPP manual for COMPUTE]] ---- CategoryRicottone