projects
/
pspp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
9cedbc3
)
all but last category
author
Ben Pfaff
<blp@cs.stanford.edu>
Thu, 30 Dec 2021 23:14:15 +0000
(15:14 -0800)
committer
Ben Pfaff
<blp@cs.stanford.edu>
Thu, 13 Jan 2022 05:52:27 +0000
(21:52 -0800)
src/language/stats/ctables.c
patch
|
blob
|
history
diff --git
a/src/language/stats/ctables.c
b/src/language/stats/ctables.c
index d3ab1a290a01f5e14244b7c332896ea2bd4d497d..96d12e03fcd4d94c4c5dbddbdf3547b315e560cf 100644
(file)
--- a/
src/language/stats/ctables.c
+++ b/
src/language/stats/ctables.c
@@
-1526,9
+1526,15
@@
ctables_execute (struct dataset *ds, struct ctables *ct)
break;
for (size_t m = n_common; m + 1 < ft->vars.n; m++)
break;
for (size_t m = n_common; m + 1 < ft->vars.n; m++)
- groups[m] = pivot_category_create_group__ (
- m > 0 ? groups[m - 1] : d->root,
- pivot_value_new_var_value (ft->vars.vars[m], &f->values[m]));
+ {
+ struct pivot_category *parent = m > 0 ? groups[m - 1] : d->root;
+ if (true)
+ parent = pivot_category_create_group__ (
+ parent, pivot_value_new_variable (ft->vars.vars[m]));
+ groups[m] = pivot_category_create_group__ (
+ parent,
+ pivot_value_new_var_value (ft->vars.vars[m], &f->values[m]));
+ }
int leaf = pivot_category_create_leaf (
ft->vars.n > 1 ? groups[ft->vars.n - 2] : d->root,
int leaf = pivot_category_create_leaf (
ft->vars.n > 1 ? groups[ft->vars.n - 2] : d->root,