READ SUBSET (SET)Name:
In this command, PACK means the SUBSET/EXCEPT/FOR clause does not apply while DISPERSE means that it does. The first setting applies to the input file while the second setting applies to the created data variables.
This is demonstrated with the following example (note that P-D means the data file is set to PACK and the output variable is set to DISPERSE). The first column is the data in the file while the remaining columns show what the resulting data variable should look like.
LET TAG = 0 FOR I = 2 2 10
READ FILE.DAT X SUBSET TAG = 1
The default setting is PACK-DISPERSE (this is the default because this is the behavior of previous versions of Dataplot). However, the DISPERSE-PACK option is the one most likely to be used. The PACK-PACK option is equivalent to not using the SUBSET clause at all, so is unlikely to be used.
where the first <PACK/DISPERSE> specifies how the SUBSET clause applies to the data file and second <PACK/DISPERSE> specifies how the output file is created.
SET READ SUBSET PACK PACK
SET READ SUBSET DISPERSE PACK
SET READ SUBSET DISPERSE DISPERSE
. This example shows how to read every other line . of the input file. . SKIP 25 SET READ SUBSET DISPERSE PACK LET N = 107 LET TAG = 1 FOR I = 1 1 N LET TAG = 0 FOR I = 2 2 N READ BERGER1.DAT Y X SUBSET TAG = 1