https://statisticsglobe.com/wp-content/uploads/2022/01/table-2-matrix-non-redundant-version-expand-grid-r.png