![]() |
READ STACKED VARIABLESName:
where Y is a response variable and X is a group-id variable. For example,
MEAN PLOT Y X However, many data files are in the form where the data for each group is stored as a separate column. The command READ STACKED VARIABLES can be used to read these files into the Y X format needed by many Dataplot commands.
where <file> is the name of a data file; <y> is the response variable where the data will be saved; <groupid> is a variable that identifies the group for each row of the response variable; and <var-list> is a list of one or more variables to read from the data file. The file name is optional. If the file name is omitted, the read will be from the terminal (until an END OF DATA is entered). The first variable read will have a group-id value of 1, the second variable read will have a group-id value of 2 and so on.
READ STACKED VARIABLES FILE.DAT Y GROUP X1 X2 X3 READ STACKED VARIABLES FILE.DAT Y GROUP X1 X2 X3 X4
The STACK command is also similar. However, it works on variables that have already been read into Dataplot.
Some users prefer to give all data files a ".DAT" or ".dat" extension. Although this is a useful method for keeping track of data files, it is strictly a user convention and is not enforced by DATAPLOT in any way.
As a further caution for Unix hosts, certain expansion characters (specifically ~ to refer to your home directory) are interpreted by the shell and are not recognized by the Fortran compiler. These expansion characters are interpreted as literal characters and do not yield the intended file name.
SKIP 25 READ STACKED VARIABLES MONTGOME.DAT Y GROUP X1 X2 X3 . TITLE Mean Plot TITLE OFFSET 2 TITLE CASE ASIS XLIMITS 1 3 TIC OFFSET UNITS DATA XTIC OFFSET 0.5 0.5 MAJOR XTIC MARK NUMBER 3 MINOR XTIC MARK NUMBER 0 XTIC MARK LABEL FORMAT ALPHA XTIC MARK LABEL CONTENT Large Medium Small TIC MARK LABEL CASE ASIS Y1LABEL Mean Percentage X1LABEL Group LABEL CASE ASIS CHARACTER X BLANK LINE BLANK SOLID . MEAN PLOT Y GROUP ![]()
| |||||||||||||||||||||
Privacy
Policy/Security Notice
NIST is an agency of the U.S. Commerce Department.
Date created: 01/06/2009 |