DataMuseum.dk

Presents historical artifacts from the history of:

DKUUG/EUUG Conference tapes

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about DKUUG/EUUG Conference tapes

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - download
Index: ┃ d

⟦890ce6c5c⟧

    Length: 3011 (0xbc3)
    Names: »dm.man«

Derivation

└─⟦a0efdde77⟧ Bits:30001252 EUUGD11 Tape, 1987 Spring Conference Helsinki
    └─ ⟦this⟧ »EUUGD11/stat-5.3/eu/stat/doc/dm.man« 

Hex Dump

0x000…020 44 4d 28 31 29 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20   ┆DM(1)                           ┆
0x020…040 20 20 20 7c 53 54 41 54 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 4e 6f 76 65 6d 62   ┆   |STAT                  Novemb┆
0x040…060 65 72 20 32 36 2c 20 31 39 38 35 0a 0a 4e 41 4d 45 0a 20 20 20 20 20 64 6d 20 2d 20 64 61 74 61   ┆er 26, 1985  NAME      dm - data┆
0x060…080 20 6d 61 6e 69 70 75 6c 61 74 69 6f 6e 20 77 69 74 68 20 63 6f 6e 64 69 74 69 6f 6e 61 6c 20 74   ┆ manipulation with conditional t┆
0x080…0a0 72 61 6e 73 66 6f 72 6d 61 74 69 6f 6e 73 0a 0a 53 59 4e 4f 50 53 49 53 0a 20 20 20 20 20 64 6d   ┆ransformations  SYNOPSIS      dm┆
0x0a0…0c0 20 5b 45 66 69 6c 65 5d 20 5b 65 78 70 72 65 73 73 69 6f 6e 73 5d 0a 0a 44 45 53 43 52 49 50 54   ┆ [Efile] [expressions]  DESCRIPT┆
0x0c0…0e0 49 4f 4e 0a 20 20 20 20 20 5f 08 64 5f 08 6d 20 69 73 20 61 20 64 61 74 61 20 6d 61 6e 69 70 75   ┆ION      _ d_ m is a data manipu┆
0x0e0…100 6c 61 74 69 6e 67 20 70 72 6f 67 72 61 6d 20 66 6f 72 20 63 6f 6c 75 6d 6e 20 65 78 74 72 61 63   ┆lating program for column extrac┆
0x100…120 74 69 6f 6e 20 66 72 6f 6d 20 66 69 6c 65 73 2c 0a 20 20 20 20 20 70 6f 73 73 69 62 6c 79 20 62   ┆tion from files,      possibly b┆
0x120…140 61 73 65 64 20 6f 6e 20 63 6f 6e 64 69 74 69 6f 6e 73 2c 20 61 6e 64 20 70 72 6f 64 75 63 74 69   ┆ased on conditions, and producti┆
0x140…160 6f 6e 20 6f 66 20 61 6c 67 65 62 72 61 69 63 20 63 6f 6d 62 69 6e 61 74 69 6f 6e 73 0a 20 20 20   ┆on of algebraic combinations    ┆
0x160…180 20 20 6f 66 20 63 6f 6c 75 6d 6e 73 2e 20 20 5f 08 64 5f 08 6d 20 72 65 61 64 73 20 77 68 69 74   ┆  of columns.  _ d_ m reads whit┆
0x180…1a0 65 73 70 61 63 65 20 73 65 70 61 72 61 74 65 64 20 66 69 65 6c 64 73 20 6f 6e 20 65 61 63 68 20   ┆espace separated fields on each ┆
0x1a0…1c0 6c 69 6e 65 20 6f 66 20 69 74 73 0a 20 20 20 20 20 69 6e 70 75 74 2e 20 20 5f 08 64 5f 08 6d 20   ┆line of its      input.  _ d_ m ┆
0x1c0…1e0 74 61 6b 65 73 20 61 20 73 65 72 69 65 73 20 6f 66 20 65 78 70 72 65 73 73 69 6f 6e 73 2c 20 61   ┆takes a series of expressions, a┆
0x1e0…200 6e 64 20 66 6f 72 20 65 61 63 68 20 6c 69 6e 65 20 6f 66 20 74 68 65 0a 20 20 20 20 20 69 6e 70   ┆nd for each line of the      inp┆
0x200…220 75 74 2c 20 5f 08 64 5f 08 6d 20 72 65 65 76 61 6c 75 61 74 65 73 20 61 6e 64 20 70 72 69 6e 74   ┆ut, _ d_ m reevaluates and print┆
0x220…240 73 20 74 68 65 20 76 61 6c 75 65 73 20 6f 66 20 74 68 6f 73 65 20 65 78 70 72 65 73 73 69 6f 6e   ┆s the values of those expression┆
0x240…260 73 2e 0a 20 20 20 20 20 4e 75 6d 65 72 69 63 61 6c 20 76 61 6c 75 65 73 20 6f 66 20 66 69 65 6c   ┆s.      Numerical values of fiel┆
0x260…280 64 73 20 6f 6e 20 61 20 6c 69 6e 65 20 63 61 6e 20 62 65 20 61 63 63 65 73 73 65 64 20 62 79 20   ┆ds on a line can be accessed by ┆
0x280…2a0 74 68 65 20 6c 65 74 74 65 72 20 27 78 27 0a 20 20 20 20 20 66 6f 6c 6c 6f 77 65 64 20 62 79 20   ┆the letter 'x'      followed by ┆
0x2a0…2c0 61 20 63 6f 6c 75 6d 6e 20 6e 75 6d 62 65 72 2e 20 20 43 68 61 72 61 63 74 65 72 20 73 74 72 69   ┆a column number.  Character stri┆
0x2c0…2e0 6e 67 73 20 63 61 6e 20 62 65 20 61 63 63 65 73 73 65 64 20 62 79 20 74 68 65 0a 20 20 20 20 20   ┆ngs can be accessed by the      ┆
0x2e0…300 6c 65 74 74 65 72 20 27 73 27 20 66 6f 6c 6c 6f 77 65 64 20 62 79 20 61 20 63 6f 6c 75 6d 6e 20   ┆letter 's' followed by a column ┆
0x300…320 6e 75 6d 62 65 72 2e 20 20 46 6f 72 20 65 78 61 6d 70 6c 65 2c 20 66 6f 72 20 74 68 65 20 69 6e   ┆number.  For example, for the in┆
0x320…340 70 75 74 0a 20 20 20 20 20 6c 69 6e 65 3a 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20   ┆put      line:                  ┆
0x340…360 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 31 32 20 20 34 35 2e 32 0a 20 20 20 20   ┆                   12  45.2     ┆
0x360…380 20 73 31 20 69 73 20 74 68 65 20 73 74 72 69 6e 67 20 27 31 32 27 2c 20 78 32 20 69 73 20 74 68   ┆ s1 is the string '12', x2 is th┆
0x380…3a0 65 20 6e 75 6d 62 65 72 20 34 35 2e 32 20 28 77 68 69 63 68 20 69 73 20 6e 6f 74 20 74 68 65 20   ┆e number 45.2 (which is not the ┆
0x3a0…3c0 73 61 6d 65 20 61 73 0a 20 20 20 20 20 73 32 2c 20 74 68 65 20 73 74 72 69 6e 67 20 27 34 35 2e   ┆same as      s2, the string '45.┆
0x3c0…3e0 32 27 29 2e 0a 0a 20 20 20 20 20 5f 08 43 5f 08 6f 5f 08 6c 5f 08 75 5f 08 6d 5f 08 6e 20 5f 08   ┆2').       _ C_ o_ l_ u_ m_ n _ ┆
0x3e0…400 45 5f 08 78 5f 08 74 5f 08 72 5f 08 61 5f 08 63 5f 08 74 5f 08 69 5f 08 6f 5f 08 6e 2e 20 43 6f   ┆E_ x_ t_ r_ a_ c_ t_ i_ o_ n. Co┆
0x400…420 6c 75 6d 6e 73 20 61 72 65 20 65 78 74 72 61 63 74 65 64 20 77 69 74 68 20 73 74 72 69 6e 67 20   ┆lumns are extracted with string ┆
0x420…440 65 78 70 72 65 73 73 69 6f 6e 73 2e 20 20 54 6f 0a 20 20 20 20 20 65 78 74 72 61 63 74 20 74 68   ┆expressions.  To      extract th┆
0x440…460 65 20 33 72 64 2c 20 38 74 68 2c 20 31 73 74 20 61 6e 64 20 32 6e 64 20 63 6f 6c 75 6d 6e 73 20   ┆e 3rd, 8th, 1st and 2nd columns ┆
0x460…480 28 69 6e 20 74 68 61 74 20 6f 72 64 65 72 29 20 66 72 6f 6d 20 22 66 69 6c 65 2c 22 0a 20 20 20   ┆(in that order) from "file,"    ┆
0x480…4a0 20 20 6f 6e 65 20 77 6f 75 6c 64 20 74 79 70 65 3a 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20   ┆  one would type:               ┆
0x4a0…4c0 20 20 20 20 20 20 20 20 20 20 20 20 64 6d 20 20 73 33 20 20 73 38 20 20 73 31 20 20 73 32 20 20   ┆            dm  s3  s8  s1  s2  ┆
0x4c0…4e0 3c 20 20 66 69 6c 65 0a 0a 20 20 20 20 20 5f 08 41 5f 08 6c 5f 08 67 5f 08 65 5f 08 62 5f 08 72   ┆<  file       _ A_ l_ g_ e_ b_ r┆
0x4e0…500 5f 08 61 5f 08 69 5f 08 63 20 5f 08 54 5f 08 72 5f 08 61 5f 08 6e 5f 08 73 5f 08 66 5f 08 6f 5f   ┆_ a_ i_ c _ T_ r_ a_ n_ s_ f_ o_┆
0x500…520 08 72 5f 08 6d 5f 08 61 5f 08 74 5f 08 69 5f 08 6f 5f 08 6e 5f 08 73 2e 20 54 6f 20 70 72 69 6e   ┆ r_ m_ a_ t_ i_ o_ n_ s. To prin┆
0x520…540 74 2c 20 69 6e 20 6f 72 64 65 72 2c 20 74 68 65 20 73 75 6d 20 6f 66 20 74 68 65 20 63 6f 6c 75   ┆t, in order, the sum of the colu┆
0x540…560 6d 6e 73 0a 20 20 20 20 20 31 20 61 6e 64 20 32 2c 20 74 68 65 20 64 69 66 66 65 72 65 6e 63 65   ┆mns      1 and 2, the difference┆
0x560…580 20 6f 66 20 63 6f 6c 75 6d 6e 73 20 33 20 61 6e 64 20 34 2c 20 61 6e 64 20 74 68 65 20 73 71 75   ┆ of columns 3 and 4, and the squ┆
0x580…5a0 61 72 65 20 72 6f 6f 74 20 6f 66 20 74 68 65 0a 20 20 20 20 20 73 75 6d 20 6f 66 20 73 71 75 61   ┆are root of the      sum of squa┆
0x5a0…5c0 72 65 73 20 6f 66 20 74 68 65 20 31 73 74 20 61 6e 64 20 33 72 64 20 63 6f 6c 75 6d 6e 73 2c 20   ┆res of the 1st and 3rd columns, ┆
0x5c0…5e0 6f 6e 65 20 63 6f 75 6c 64 20 74 79 70 65 20 74 68 65 20 63 6f 6d 6d 61 6e 64 3a 0a 20 20 20 20   ┆one could type the command:     ┆
0x5e0…600 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 64 6d 20 20 22 78 31 2b 78 32 22 20 20 22 78 33   ┆                dm  "x1+x2"  "x3┆
0x600…620 2d 78 34 22 20 20 22 28 78 31 2a 78 31 2b 78 33 2a 78 33 29 5e 2e 35 22 0a 20 20 20 20 20 54 68   ┆-x4"  "(x1*x1+x3*x3)^.5"      Th┆
0x620…640 65 72 65 20 61 72 65 20 74 68 65 20 75 73 75 61 6c 20 6d 61 74 68 65 6d 61 74 69 63 61 6c 20 66   ┆ere are the usual mathematical f┆
0x640…660 75 6e 63 74 69 6f 6e 73 20 74 68 61 74 20 61 6c 6c 6f 77 20 65 78 70 72 65 73 73 69 6f 6e 73 0a   ┆unctions that allow expressions ┆
0x660…680 20 20 20 20 20 6c 69 6b 65 3a 0a 20 20 20 20 20 20 20 20 20 20 20 20 64 6d 20 20 22 65 78 70 28   ┆     like:             dm  "exp(┆
0x680…6a0 78 31 29 20 2b 20 6c 6f 67 28 6c 6f 67 28 78 32 29 29 22 20 20 22 66 6c 6f 6f 72 20 28 78 31 2f   ┆x1) + log(log(x2))"  "floor (x1/┆
0x6a0…6c0 78 32 29 22 20 20 22 73 69 6e 20 78 31 22 0a 0a 20 20 20 20 20 5f 08 54 5f 08 65 5f 08 73 5f 08   ┆x2)"  "sin x1"       _ T_ e_ s_ ┆
0x6c0…6e0 74 5f 08 69 5f 08 6e 5f 08 67 20 5f 08 43 5f 08 6f 5f 08 6e 5f 08 64 5f 08 69 5f 08 74 5f 08 69   ┆t_ i_ n_ g _ C_ o_ n_ d_ i_ t_ i┆
0x6e0…700 5f 08 6f 5f 08 6e 5f 08 73 2e 20 45 78 70 72 65 73 73 69 6f 6e 73 20 63 61 6e 20 62 65 20 63 6f   ┆_ o_ n_ s. Expressions can be co┆
0x700…720 6e 64 69 74 69 6f 6e 61 6c 6c 79 20 65 76 61 6c 75 61 74 65 64 20 62 79 0a 20 20 20 20 20 63 6f   ┆nditionally evaluated by      co┆
0x720…740 6d 70 61 72 69 6e 67 20 76 61 6c 75 65 73 2e 20 20 54 6f 20 70 72 69 6e 74 20 74 68 65 20 72 61   ┆mparing values.  To print the ra┆
0x740…760 74 69 6f 20 6f 66 20 78 31 20 61 6e 64 20 78 32 2c 20 61 6e 64 20 63 68 65 63 6b 20 74 68 65 0a   ┆tio of x1 and x2, and check the ┆
0x760…780 20 20 20 20 20 76 61 6c 75 65 20 6f 66 20 78 32 20 62 65 66 6f 72 65 20 64 69 76 69 73 69 6f 6e   ┆     value of x2 before division┆
0x780…7a0 20 61 6e 64 20 70 72 69 6e 74 20 27 65 72 72 6f 72 27 20 69 66 20 78 32 20 69 73 20 30 2c 20 6f   ┆ and print 'error' if x2 is 0, o┆
0x7a0…7c0 6e 65 20 63 6f 75 6c 64 0a 20 20 20 20 20 74 79 70 65 3a 0a 20 20 20 20 20 20 20 20 20 20 20 20   ┆ne could      type:             ┆
0x7c0…7e0 20 20 20 20 20 20 20 20 20 64 6d 20 22 69 66 20 78 32 20 3d 20 30 20 74 68 65 6e 20 27 65 72 72   ┆         dm "if x2 = 0 then 'err┆
0x7e0…800 6f 72 27 20 65 6c 73 65 20 78 31 2f 78 32 22 0a 20 20 20 20 20 54 6f 20 65 78 74 72 61 63 74 20   ┆or' else x1/x2"      To extract ┆
0x800…820 6c 69 6e 65 73 20 69 6e 20 77 68 69 63 68 20 74 77 6f 20 63 6f 6c 75 6d 6e 73 20 61 72 65 20 74   ┆lines in which two columns are t┆
0x820…840 68 65 20 73 61 6d 65 20 73 74 72 69 6e 67 2c 20 73 61 79 20 74 68 65 20 35 74 68 0a 20 20 20 20   ┆he same string, say the 5th     ┆
0x840…860 20 61 6e 64 20 32 6e 64 2c 20 6f 6e 65 20 77 6f 75 6c 64 20 74 79 70 65 3a 0a 20 20 20 20 20 20   ┆ and 2nd, one would type:       ┆
0x860…880 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 64 6d 20 22 69 66 20 73 35 20 3d 20 73 32 20 74   ┆                dm "if s5 = s2 t┆
0x880…8a0 68 65 6e 20 49 4e 50 55 54 20 65 6c 73 65 20 4e 45 58 54 22 0a 0a 20 20 20 20 20 5f 08 4f 5f 08   ┆hen INPUT else NEXT"       _ O_ ┆
0x8a0…8c0 74 5f 08 68 5f 08 65 5f 08 72 20 5f 08 46 5f 08 65 5f 08 61 5f 08 74 5f 08 75 5f 08 72 5f 08 65   ┆t_ h_ e_ r _ F_ e_ a_ t_ u_ r_ e┆
0x8c0…8e0 5f 08 73 2e 20 5f 08 64 5f 08 6d 20 68 61 73 20 63 6f 6d 70 61 72 69 73 6f 6e 2c 20 61 6c 67 65   ┆_ s. _ d_ m has comparison, alge┆
0x8e0…900 62 72 61 69 63 2c 20 61 6e 64 20 6c 6f 67 69 63 61 6c 20 6f 70 65 72 61 74 6f 72 73 2c 0a 20 20   ┆braic, and logical operators,   ┆
0x900…920 20 20 20 61 6e 64 20 73 70 65 63 69 61 6c 20 76 61 72 69 61 62 6c 65 73 20 74 6f 20 74 61 6b 65   ┆   and special variables to take┆
0x920…940 20 63 6f 6e 74 72 6f 6c 20 69 6e 20 65 78 63 65 70 74 69 6f 6e 61 6c 20 63 6f 6e 64 69 74 69 6f   ┆ control in exceptional conditio┆
0x940…960 6e 73 2e 0a 20 20 20 20 20 54 68 65 73 65 20 69 6e 63 6c 75 64 65 3a 20 49 4e 50 55 54 2c 20 74   ┆ns.      These include: INPUT, t┆
0x960…980 68 65 20 63 75 72 72 65 6e 74 20 69 6e 70 75 74 20 6c 69 6e 65 20 69 6e 20 73 74 72 69 6e 67 20   ┆he current input line in string ┆
0x980…9a0 66 6f 72 6d 3b 20 49 4e 4c 49 4e 45 2c 0a 20 20 20 20 20 74 68 65 20 63 75 72 72 65 6e 74 20 69   ┆form; INLINE,      the current i┆
0x9a0…9c0 6e 70 75 74 20 6c 69 6e 65 20 6e 75 6d 62 65 72 3b 20 4e 2c 20 74 68 65 20 66 69 65 6c 64 20 63   ┆nput line number; N, the field c┆
0x9c0…9e0 6f 75 6e 74 20 69 6e 20 49 4e 50 55 54 3b 20 53 55 4d 2c 20 74 68 65 0a 20 20 20 20 20 73 75 6d   ┆ount in INPUT; SUM, the      sum┆
0x9e0…a00 20 6f 66 20 74 68 65 20 6e 75 6d 62 65 72 73 20 69 6e 20 49 4e 50 55 54 3b 20 52 41 4e 44 2c 20   ┆ of the numbers in INPUT; RAND, ┆
0xa00…a20 61 20 75 6e 69 66 6f 72 6d 20 72 61 6e 64 6f 6d 20 6e 75 6d 62 65 72 20 64 69 66 66 65 72 65 6e   ┆a uniform random number differen┆
0xa20…a40 74 0a 20 20 20 20 20 66 6f 72 20 65 61 63 68 20 6c 69 6e 65 3b 20 4e 49 4c 2c 20 61 6e 20 65 78   ┆t      for each line; NIL, an ex┆
0xa40…a60 70 72 65 73 73 69 6f 6e 20 74 68 61 74 20 63 61 75 73 65 73 20 6e 6f 20 6f 75 74 70 75 74 3b 20   ┆pression that causes no output; ┆
0xa60…a80 4e 45 58 54 2c 20 77 68 69 63 68 0a 20 20 20 20 20 74 65 72 6d 69 6e 61 74 65 73 20 65 76 61 6c   ┆NEXT, which      terminates eval┆
0xa80…aa0 75 61 74 69 6f 6e 20 6f 6e 20 49 4e 50 55 54 20 61 6e 64 20 67 6f 65 73 20 74 6f 20 74 68 65 20   ┆uation on INPUT and goes to the ┆
0xaa0…ac0 6e 65 78 74 20 6c 69 6e 65 3b 20 61 6e 64 20 45 58 49 54 2c 0a 20 20 20 20 20 77 68 69 63 68 20   ┆next line; and EXIT,      which ┆
0xac0…ae0 74 65 72 6d 69 6e 61 74 65 73 20 61 6c 6c 20 70 72 6f 63 65 73 73 69 6e 67 2e 0a 0a 4c 49 4d 49   ┆terminates all processing.  LIMI┆
0xae0…b00 54 53 0a 20 20 20 20 20 49 6e 70 75 74 20 66 69 65 6c 64 73 20 6c 6f 6e 67 65 72 20 74 68 61 6e   ┆TS      Input fields longer than┆
0xb00…b20 20 31 35 20 63 68 61 72 61 63 74 65 72 73 20 61 72 65 20 74 72 75 6e 63 61 74 65 64 20 73 69 6c   ┆ 15 characters are truncated sil┆
0xb20…b40 65 6e 74 6c 79 2e 20 20 54 68 65 0a 20 20 20 20 20 6e 75 6d 62 65 72 20 6f 66 20 69 6e 70 75 74   ┆ently.  The      number of input┆
0xb40…b60 20 63 6f 6c 75 6d 6e 73 2c 20 6f 75 74 70 75 74 20 65 78 70 72 65 73 73 69 6f 6e 73 2c 20 61 6e   ┆ columns, output expressions, an┆
0xb60…b80 64 20 65 78 70 72 65 73 73 69 6f 6e 20 63 6f 6e 73 74 61 6e 74 73 0a 20 20 20 20 20 61 72 65 20   ┆d expression constants      are ┆
0xb80…ba0 6c 69 6d 69 74 65 64 20 74 6f 20 31 30 30 2e 0a 0a 53 45 45 20 41 4c 53 4f 0a 20 20 20 20 20 54   ┆limited to 100.  SEE ALSO      T┆
0xba0…bc0 68 65 20 44 4d 20 4d 61 6e 75 61 6c 20 69 6e 20 54 68 65 20 7c 53 54 41 54 20 48 61 6e 64 62 6f   ┆he DM Manual in The |STAT Handbo┆
0xbc0…bc3 6f 6b 0a   ┆ok ┆