= SPSS Value Labels = The '''`VALUE LABELS`''' command sets value labels. <> ---- == Usage == {{{ value labels foo 1 "Yes" 2 "No" /bar "Y" "Yes" "N" "No". }}} Note that [[SPSS/DataTypes#String_Data|string]] variables are checked case-insensitively for value labels. === Add Value Labels === The `VALUE LABELS` command clears any pre-existing value labels when setting new ones. To instead ''add'' value labels, use the '''`ADD VALUE LABELS`''' command. {{{ add value labels foo 1 "Yes" 2 "No" /bar "Y" "Yes" "N" "No". }}} ---- == Data Model == The `VALUE LABELS` command executes immediately. Pending transformations are ''not'' executed and the active dataset is ''not'' read. ---- == See also == [[https://www.gnu.org/software/pspp/manual/html_node/VALUE-LABELS.html|PSPP manual for VALUE LABELS]] ---- CategoryRicottone