From: Ben Pfaff Date: Fri, 17 Feb 2023 17:46:45 +0000 (-0800) Subject: CTABLES: Don't force the look to include empty rows and columns. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=65077482fec88e6a2a22a78528eb7b933f90dbe9;p=pspp CTABLES: Don't force the look to include empty rows and columns. Frans Houweling said that it looked wrong, and I don't have a strong reason to do it. --- diff --git a/src/language/commands/ctables.c b/src/language/commands/ctables.c index d25832b7e6..e53a43023d 100644 --- a/src/language/commands/ctables.c +++ b/src/language/commands/ctables.c @@ -6014,7 +6014,6 @@ cmd_ctables (struct lexer *lexer, struct dataset *ds) struct pivot_table_look *look = pivot_table_look_unshare ( pivot_table_look_ref (pivot_table_look_get_default ())); - look->omit_empty = false; struct ctables *ct = xmalloc (sizeof *ct); *ct = (struct ctables) { diff --git a/tests/language/commands/ctables.at b/tests/language/commands/ctables.at index 22e1380a58..7f15631d5b 100644 --- a/tests/language/commands/ctables.at +++ b/tests/language/commands/ctables.at @@ -1782,58 +1782,30 @@ AT_CHECK([pspp ctables.sps -O box=unicode -O width=80], [0], [dnl │ │Male│Female│ ├─────────────────────────────────────────────────┼────┼──────┤ │QN1 Every day Count │2305│ 2362│ -│ Unweighted Count│ │ │ -│ Mean │ │ │ │ ╶────────────────────────────────────────────┼────┼──────┤ │ Several days a week Count │ 440│ 834│ -│ Unweighted Count│ │ │ -│ Mean │ │ │ │ ╶────────────────────────────────────────────┼────┼──────┤ │ Once a week or less Count │ 125│ 236│ -│ Unweighted Count│ │ │ -│ Mean │ │ │ │ ╶────────────────────────────────────────────┼────┼──────┤ │ Only certain times a year Count │ 58│ 72│ -│ Unweighted Count│ │ │ -│ Mean │ │ │ │ ╶────────────────────────────────────────────┼────┼──────┤ │ Never Count │ 192│ 348│ -│ Unweighted Count│ │ │ -│ Mean │ │ │ ├─────────────────────────────────────────────────┼────┼──────┤ -│qnd1 Count │ │ │ -│ ╶────────────────────────────────────────────┼────┼──────┤ -│ Unweighted Count │ │ │ -│ ╶────────────────────────────────────────────┼────┼──────┤ -│ Mean │ 46│ 50│ +│qnd1 Mean │ 46│ 50│ ├─────────────────────────────────────────────────┼────┼──────┤ -│QN17 OR, something else Count │ │ │ -│ Unweighted Count│ 1│ 1│ -│ Mean │ │ │ +│QN17 OR, something else Unweighted Count│ 1│ 1│ │ ╶────────────────────────────────────────────┼────┼──────┤ -│ Beer Count │ │ │ -│ Unweighted Count│ 817│ 256│ -│ Mean │ │ │ +│ Beer Unweighted Count│ 817│ 256│ │ ╶────────────────────────────────────────────┼────┼──────┤ -│ Light beer Count │ │ │ -│ Unweighted Count│ 406│ 214│ -│ Mean │ │ │ +│ Light beer Unweighted Count│ 406│ 214│ │ ╶────────────────────────────────────────────┼────┼──────┤ -│ Wine Count │ │ │ -│ Unweighted Count│ 390│ 1028│ -│ Mean │ │ │ +│ Wine Unweighted Count│ 390│ 1028│ │ ╶────────────────────────────────────────────┼────┼──────┤ -│ Wine coolers Count │ │ │ -│ Unweighted Count│ 20│ 117│ -│ Mean │ │ │ +│ Wine coolers Unweighted Count│ 20│ 117│ │ ╶────────────────────────────────────────────┼────┼──────┤ -│ Hard liquor or mixed drinks Count │ │ │ -│ Unweighted Count│ 392│ 496│ -│ Mean │ │ │ +│ Hard liquor or mixed drinks Unweighted Count│ 392│ 496│ │ ╶────────────────────────────────────────────┼────┼──────┤ -│ Flavored malt drinks Count │ │ │ -│ Unweighted Count│ 20│ 63│ -│ Mean │ │ │ +│ Flavored malt drinks Unweighted Count│ 20│ 63│ ╰─────────────────────────────────────────────────┴────┴──────╯ ]) AT_CLEANUP