X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=doc%2Ftransformation.texi;h=002fb99eb8fb74ed624647f6811c24758edf552b;hb=29956ba4326b9d6a2bc4d22a9f323902c7a08d43;hp=327f67391210f640b810dc798d284cb2fa522e64;hpb=72435b7315ecb4943d0c8cf4ffb04fbba695ca1d;p=pspp-builds.git diff --git a/doc/transformation.texi b/doc/transformation.texi index 327f6739..002fb99e 100644 --- a/doc/transformation.texi +++ b/doc/transformation.texi @@ -1,4 +1,4 @@ -@node Data Manipulation, Data Selection, Variable Attributes, Top +@node Data Manipulation @chapter Data transformations @cindex transformations @@ -17,7 +17,7 @@ as a rule. * SORT CASES:: Sort the active file. @end menu -@node AGGREGATE, AUTORECODE, Data Manipulation, Data Manipulation +@node AGGREGATE @section AGGREGATE @vindex AGGREGATE @@ -194,7 +194,7 @@ will cause the period to be interpreted as the end of the command.) @cmd{AGGREGATE} both ignores and cancels the current @cmd{SPLIT FILE} settings (@pxref{SPLIT FILE}). -@node AUTORECODE, COMPUTE, AGGREGATE, Data Manipulation +@node AUTORECODE @section AUTORECODE @vindex AUTORECODE @@ -224,7 +224,7 @@ PRINT is currently ignored. @cmd{AUTORECODE} is a procedure. It causes the data to be read. -@node COMPUTE, COUNT, AUTORECODE, Data Manipulation +@node COMPUTE @section COMPUTE @vindex COMPUTE @@ -264,7 +264,7 @@ When @cmd{COMPUTE} is specified following @cmd{TEMPORARY} (@pxref{TEMPORARY}), the @cmd{LAG} function may not be used (@pxref{LAG}). -@node COUNT, FLIP, COMPUTE, Data Manipulation +@node COUNT @section COUNT @vindex COUNT @@ -287,7 +287,7 @@ one or more @dfn{test} variables for each case. The target variable values are always nonnegative integers. They are never missing. The target variable is assigned an F8.2 output format. -@xref{Input/Output Formats}. Any variables, including long and short +@xref{Input and Output Formats}. Any variables, including long and short string variables, may be test variables. User-missing values of test variables are treated just like any other @@ -368,7 +368,7 @@ DESCRIPTIVES QVALID /STATISTICS=MEAN. @end example @end enumerate -@node FLIP, IF, COUNT, Data Manipulation +@node FLIP @section FLIP @vindex FLIP @@ -414,7 +414,7 @@ FLIP honors @cmd{N OF CASES} (@pxref{N OF CASES}). It ignores @cmd{TEMPORARY} (@pxref{TEMPORARY}), so that ``temporary'' transformations become permanent. -@node IF, RECODE, FLIP, Data Manipulation +@node IF @section IF @vindex IF @@ -452,7 +452,7 @@ When @cmd{IF} is specified following @cmd{TEMPORARY} (@pxref{TEMPORARY}), the @cmd{LAG} function may not be used (@pxref{LAG}). -@node RECODE, SORT CASES, IF, Data Manipulation +@node RECODE @section RECODE @vindex RECODE @@ -520,12 +520,12 @@ Multiple recodings can be specified on a single @cmd{RECODE} invocation. Introduce additional recodings with a slash (@samp{/}) to separate them from the previous recodings. -@node SORT CASES, , RECODE, Data Manipulation +@node SORT CASES @section SORT CASES @vindex SORT CASES @display -SORT CASES BY var_list. +SORT CASES BY var_list[(@{D|A@}] [ var_list[(@{D|A@}] ] ... @end display @cmd{SORT CASES} sorts the active file by the values of one or more @@ -534,8 +534,8 @@ variables. Specify BY and a list of variables to sort by. By default, variables are sorted in ascending order. To override sort order, specify (D) or (DOWN) after a list of variables to get descending order, or (A) or (UP) -for ascending order. These apply to the entire list of variables -preceding them. +for ascending order. These apply to all the listed variables +up until the preceding (A), (D), (UP) or (DOWN). The sort algorithms used by @cmd{SORT CASES} are stable. That is, records that have equal values of the sort variables will have the