for (size_t j = 0; j < sn; j++)
{
struct variable *var = dict_get_var (d, ss + j);
+ const union value *value = case_data (rows[0], var);
pivot_table_put2 (pt, j, var_index,
- pivot_value_new_number (case_num (rows[0], var)));
+ pivot_value_new_var_value (var, value));
}
for (size_t j = 0; j < fn; j++)
{
struct variable *var = dict_get_var (d, fs + j);
+ const union value *value = case_data (rows[0], var);
pivot_table_put2 (pt, j + sn, var_index,
- pivot_value_new_number (case_num (rows[0], var)));
+ pivot_value_new_var_value (var, value));
}
for (size_t j = 0; j < sizeof values / sizeof *values; j++)
pivot_table_put2 (pt, j + sn + fn, var_index,