![]() |
CHARACTER CODEName:
command. This command stores the character fields in the file "dpchzf.dat". The two primary uses of character data are:
In the context of Dataplot, we can use groups in two contexts.
The CHARACTER CODE command identifies the unique rows in the character variable (Dataplot checks for exact matches, it does not try to guess if a typo has occurred, etc.). If there are K unique rows, Dataplot will generate coded values as the integer values from 1 to K. The CHARACTER CODE performs the coding in the order that the unique rows are encoutered in the file. The ALPHABETIC CHARACTER CODE is a variant of the CHARACTER CODE command that sorts the unique character rows and assigns the code based on the alphabetic order of the character rows.
where <ix> specifies the name of the character variable in the file dpzchf.dat; and <y> specifies the name for the coded numberic variable to be saved. The character variable is originally created with a READ command where the SET CONVERT CHARACTER ON was entered prior to the READ.
where <ix> specifies the name of the character variable in the file dpzchf.dat; and <y> specifies the name for the coded numberic variable to be saved. The character variable is originally created with a READ command where the SET CONVERT CHARACTER ON was entered prior to the READ. This syntax assigns the codes based on the alphabetic order of the character variable.
READ TEST.DAT Y X IX LET Y = CHARACTER CODE IX
set convert character on skip 25 read draft69c.dat rank day month . let ig = group label month x1tic mark label format group label x1tic mark label content ig x1tic mark label font simplex x1tic mark label angle 45 x1tic mark label displacement 10 let xcode = character code month . major xtic mark number 12 minor xtic mark number 0 xlimits 1 12 xtic offset 0.5 0.5 . char box plot line box plot fences on . box plot rank xcode ![]()
|
Privacy
Policy/Security Notice
NIST is an agency of the U.S.
Commerce Department.
Date created: 02/03/2004 |