let mut pt = PivotTable::new([
(Axis3::X, Dimension::new(values)),
(Axis3::Y, Dimension::new(variables)),
- ]);
+ ]).with_title("Data File and Variable Attributes");
for (row, datum) in data.into_iter().enumerate() {
pt.insert(&[0, row], datum);
}
│ThirdVariable │ 3│ │ │Input │ 8│Right │F8.0 │F8.0 │ │
╰──────────────┴────────┴─────┴─────────────────┴──────┴─────┴─────────┴────────────┴────────────┴──────────────╯
+ Data File and Variable Attributes
╭───────────────────────────────┬─────────────╮
│Variable and Name │ Value │
├───────────────────────────────┼─────────────┤
│firstvar│ 1│ │ │Input│ 8│Right │F8.0 │F8.0 │ │
╰────────┴────────┴─────┴─────────────────┴─────┴─────┴─────────┴────────────┴────────────┴──────────────╯
+Data File and Variable Attributes
╭───────────────────────┬─────╮
│Variable and Name │Value│
├───────────────────────┼─────┤
│ 5│Strongly Agree │
╰──────────────────────────────────────────────────────┴─────────────────╯
+ Data File and Variable Attributes
╭───────────────────────────────────────────────────────────┬─────╮
│Variable and Name │Value│
├───────────────────────────────────────────────────────────┼─────┤
│firstvar│ 1│ │ │Input│ 8│Right │F8.0 │F8.0 │ │
╰────────┴────────┴─────┴─────────────────┴─────┴─────┴─────────┴────────────┴────────────┴──────────────╯
+Data File and Variable Attributes
╭───────────────────────┬─────╮
│Variable and Name │Value│
├───────────────────────┼─────┤
│x│ 7│ │ │Input │ 8│Right │F8.0 │F8.0 │ │
╰─┴────────┴─────┴─────────────────┴─────────┴─────┴─────────┴────────────┴────────────┴──────────────╯
+Data File and Variable Attributes
╭────────────────────────┬─────╮
│Variable and Name │Value│
├────────────────────────┼─────┤
│variable3│ 4│ │ │Input│ 8│Right │F8.2 │F8.2 │ │
╰─────────┴────────┴─────┴─────────────────┴─────┴─────┴─────────┴────────────┴────────────┴──────────────╯
+Data File and Variable Attributes
╭────────────────────────┬─────╮
│Variable and Name │Value│
├────────────────────────┼─────┤
│variable3│ 4│ │ │Input│ 8│Right │F8.2 │F8.2 │ │
╰─────────┴────────┴─────┴─────────────────┴─────┴─────┴─────────┴────────────┴────────────┴──────────────╯
+Data File and Variable Attributes
╭────────────────────────┬─────╮
│Variable and Name │Value│
├────────────────────────┼─────┤
│variable3│ 4│ │ │Input│ 8│Right │F8.2 │F8.2 │ │
╰─────────┴────────┴─────┴─────────────────┴─────┴─────┴─────────┴────────────┴────────────┴──────────────╯
+Data File and Variable Attributes
╭────────────────────────┬─────╮
│Variable and Name │Value│
├────────────────────────┼─────┤
│s566│ 5│ │Nominal │Input│ 32│Left │A566 │A566 │ │
╰────┴────────┴─────┴─────────────────┴─────┴─────┴─────────┴────────────┴────────────┴──────────────╯
+Data File and Variable Attributes
╭────────────────────────┬─────╮
│Variable and Name │Value│
├────────────────────────┼─────┤
│s566│ 5│ │Nominal │Input│ 32│Left │A566 │A566 │ │
╰────┴────────┴─────┴─────────────────┴─────┴─────┴─────────┴────────────┴────────────┴──────────────╯
+Data File and Variable Attributes
╭────────────────────────┬─────╮
│Variable and Name │Value│
├────────────────────────┼─────┤
│s566│ 5│ │Nominal │Input│ 32│Left │A566 │A566 │ │
╰────┴────────┴─────┴─────────────────┴─────┴─────┴─────────┴────────────┴────────────┴──────────────╯
+Data File and Variable Attributes
╭────────────────────────┬─────╮
│Variable and Name │Value│
├────────────────────────┼─────┤