23 | | '''!http://sourceforge.net/projects/spss-writer/''' |
| 23 | '''http://sourceforge.net/projects/spss-writer/''' |
| 24 | |
| 25 | = SPSS file format = |
| 26 | {{{ |
| 27 | male 37 102 |
| 28 | male 22 115 |
| 29 | male 27 99 |
| 30 | .... .. ... |
| 31 | female 48 107 |
| 32 | female 21 103 |
| 33 | female 28 122 |
| 34 | ...... .. ... |
| 35 | |
| 36 | }}} |
| 37 | {{{ |
| 38 | ================================ |
| 39 | }}} |
| 40 | {{{ |
| 41 | In this specific example there are |
| 42 | }}} |
| 43 | 1. There are 3 variables |
| 44 | 1. Variable 1 is a '' string '', Variable 2 and 3 are '' numeric '' |
| 45 | 1. Variable 1: first column=1, last column=6 |
| 46 | * Notice that none of the columns overlap. The longest case for column one is the name "female", that spans from the first column to the sixth - or, the letter ''' e'''. As you can see, one has to manually locate the first and last column, of each variable. |
| 47 | 1. Variable 2: first column=9, last column=10 |
| 48 | 1. Variable 3: first column=12, last column=14 |
| 49 | |
| 50 | {{{ |
| 51 | ----------------------------- |
| 52 | }}} |
| 53 | {{{ |
| 54 | The corresponding variables are the columns that are selected by the user in the UI , this is returned by getColNames() , and the data of this matrix are returned by the matrix.getData(); |
| 55 | }}} |
| 56 | |
| 57 | {{{ |
| 58 | for example if the user has selected in the matrix viewer : PA_ID , ztgewicht and gewicht |
| 59 | }}} |
| 60 | {{{ |
| 61 | the exported SPSS file should contain : |
| 62 | }}} |
| 63 | {{{ |
| 64 | PA_ID 1 2 3 4 3 7 |
| 65 | }}} |
| 66 | {{{ |
| 67 | {{{ |
| 68 | ztgewicht 1 2 3 4 3 7 |
| 69 | }}} |
| 70 | {{{ |
| 71 | {{{ |
| 72 | {{{ |
| 73 | |
| 74 | }}} |
| 75 | gewicht 1 2 3 4 3 7 |
| 76 | }}} |
| 77 | {{{ |
| 78 | {{{ |
| 79 | |
| 80 | }}} |
| 81 | |
| 82 | }}} |
| 83 | |
| 84 | }}} |
| 85 | |
| 86 | }}} |
| 87 | {{{ |
| 88 | |
| 89 | |
| 90 | }}} |
| 91 | {{{ |
| 92 | |
| 93 | }}} |