Differences between revisions 3 and 4
Revision 3 as of 2023-06-09 20:18:26
Size: 934
Comment:
Revision 4 as of 2023-06-09 20:29:17
Size: 943
Comment:
Deletions are marked like this. Additions are marked like this.
Line 21: Line 21:
The key variables must be defined with the same format (including length for string variables) in each file. Cases must be uniquely identified by the key variables in each file. The key variables must be defined with the same format (including length for string variables) in each dataset. Cases must be uniquely identified by the key variables in each dataset.
Line 23: Line 23:
Each file must be presorted by the key variables. Each dataset must be presorted by the key variables.

SPSS Update

The UPDATE command overwrites values in a dataset with non-missing values from another dataset.


Usage

update file=foo
  /file=bar
  /by KEYVARS.

The master file is modified in-place. Rows and columns originating from a transaction file are appended.

The key variables must be defined with the same format (including length for string variables) in each dataset. Cases must be uniquely identified by the key variables in each dataset.

Each dataset must be presorted by the key variables.

File

Each /FILE subcommand takes one of:

  • a star (*) indicating the active data set

  • the name of a data set
  • a filename or file handle


See also

PSPP manual for UPDATE


CategoryRicottone

SPSS/Update (last edited 2024-01-02 17:07:57 by DominicRicottone)