- for ( v = 0 ; v < n_vars ; ++v )
- {
- const struct variable *var = vv[v];
- const struct fmt_spec *fmt = var_get_print_format (var);
-
- tab_text (table, 0, 2 + v, 0, var_to_string (var));
-
- col = 1;
- if (desc != NULL)
- {
- tab_double (table, col++, 2 + v, 0, desc[v].n, fmt);
- tab_double (table, col++, 2 + v, 0, desc[v].mean, fmt);
- tab_double (table, col++, 2 + v, 0, desc[v].std_dev, fmt);
- tab_double (table, col++, 2 + v, 0, desc[v].min, fmt);
- tab_double (table, col++, 2 + v, 0, desc[v].max, fmt);
- }
+ union value extrema[2] = { { .f = desc[v].min }, { .f = desc[v].max } };
+ for (size_t j = 0; j < 2; j++)
+ pivot_table_put2 (table, 3 + j, row,
+ pivot_value_new_var_value (var, &extrema[j]));