Does anyone know how to invert a column in SPSS? I.e., given a column with elements 0.1,0.5,1.2,4.3,5.1, I would like to get a new column with elements 5.1,4.3,1.2,0.5,0.1.
On Mon, 28 Nov 2022 06:22:04 -0800 (PST), T Nimof <thi...@gmail.com>If the columns are variables that you want to change from v1, v2, v3, v4, and v5 into v5, v4, v3, v2, and v1 then you could use:
wrote:
Does anyone know how to invert a column in SPSS? I.e., given a column with elements 0.1,0.5,1.2,4.3,5.1, I would like to get a new column with elements 5.1,4.3,1.2,0.5,0.1.By 'column', are you referring to what you see in the data editor?
If you have a data file that is sorted in order on one variable,
you can use SORT (Descending) to reverse the order.
--
Rich Ulrich
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 422 |
Nodes: | 16 (2 / 14) |
Uptime: | 195:57:39 |
Calls: | 8,950 |
Calls today: | 1 |
Files: | 13,352 |
Messages: | 5,992,422 |