else
cases->hide_all_labels = true;
- casenumber case_num = 1;
+ casenumber case_num = lcmd->first;
for (; (c = casereader_read (group)) != NULL; case_unref (c))
{
int case_idx = pivot_category_create_leaf (
- cases->root, pivot_value_new_integer (case_num++));
+ cases->root, pivot_value_new_integer (case_num));
+ case_num += lcmd->step;
for (int i = 0; i < lcmd->n_variables; i++)
pivot_table_put2 (table, i, case_idx,
DATA LIST FILE='data.txt'/avar 1-5 bvar 6-10.
WEIGHT BY bvar.
LIST/FORMAT NUMBERED.
+LIST/FORMAT NUMBERED/CASES FROM 2 TO 9 BY 2.
])
AT_CHECK([pspp -o pspp.csv list.sps])
AT_CHECK([cat pspp.csv], [0], [dnl
9,26,30
10,27,21
11,28,23
+
+Table: Data List
+Case Number,avar,bvar
+2,19,7
+4,21,76
+6,23,58
+8,25,38
])
AT_CLEANUP