X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=doc%2Ftransformation.texi;h=fe08b9cd8fbb6eefeee8507848a52b78091685fa;hb=HEAD;hp=27bbb2da8d039204be8c27f9b996f867b9ba6511;hpb=da4e969668bf31c5e5d79a78e5f9ac96a97b22a6;p=pspp-builds.git diff --git a/doc/transformation.texi b/doc/transformation.texi index 27bbb2da..fe08b9cd 100644 --- a/doc/transformation.texi +++ b/doc/transformation.texi @@ -83,9 +83,9 @@ list. Each set must have exactly as many source variables as aggregation variables. Each aggregation variable receives the results of applying the specified aggregation function to the corresponding source -variable. The MEAN, SD, and SUM aggregation functions may only be +variable. The MEAN, MEDIAN, SD, and SUM aggregation functions may only be applied to numeric variables. All the rest may be applied to numeric -and short and long string variables. +and string variables. The available aggregation functions are as follows: @@ -128,6 +128,9 @@ dictionary information from the source variable. Arithmetic mean. Limited to numeric values. The default format is F8.2. +@item MEDIAN(var_name) +The median value. Limited to numeric values. The default format is F8.2. + @item MIN(var_name) Minimum value. The aggregation variable receives the complete dictionary information from the source variable. @@ -236,7 +239,7 @@ COMPUTE vector(index) = expression. @cmd{COMPUTE} assigns the value of an expression to a target variable. For each case, the expression is evaluated and its value -assigned to the target variable. Numeric and short and long string +assigned to the target variable. Numeric and string variables may be assigned. When a string expression's width differs from the target variable's width, the string result of the expression is truncated or padded with spaces on the right as necessary. The @@ -287,7 +290,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 and Output Formats}. Any variables, including long and short +@xref{Input and Output Formats}. Any variables, including string variables, may be test variables. User-missing values of test variables are treated just like any other @@ -432,7 +435,7 @@ Specify a boolean-valued expression (@pxref{Expressions}) to be tested following the IF keyword. This expression is evaluated for each case. If the value is true, then the value of the expression is computed and assigned to the specified variable. If the value is false or missing, -nothing is done. Numeric and short and long string variables may be +nothing is done. Numeric and string variables may be assigned. When a string expression's width differs from the target variable's width, the string result of the expression is truncated or padded with spaces on the right as necessary. The expression and @@ -478,7 +481,7 @@ dest_value may take the following forms: @cmd{RECODE} translates data from one range of values to another, via flexible user-specified mappings. Data may be remapped -in-place or copied to new variables. Numeric, short string, and long +in-place or copied to new variables. Numeric and string data can be recoded. Specify the list of source variables, followed by one or more mapping @@ -550,4 +553,3 @@ If workspace is exhausted, it falls back to a merge sort algorithm that involves creates numerous temporary files. @cmd{SORT CASES} may not be specified following TEMPORARY. -@setfilename ignored