Wolfram Language Paclet Repository

Community-contributed installable additions to the Wolfram Language

Primary Navigation

    • Cloud & Deployment
    • Core Language & Structure
    • Data Manipulation & Analysis
    • Engineering Data & Computation
    • External Interfaces & Connections
    • Financial Data & Computation
    • Geographic Data & Computation
    • Geometry
    • Graphs & Networks
    • Higher Mathematical Computation
    • Images
    • Knowledge Representation & Natural Language
    • Machine Learning
    • Notebook Documents & Presentation
    • Scientific and Medical Data & Computation
    • Social, Cultural & Linguistic Data
    • Strings & Text
    • Symbolic & Numeric Computation
    • System Operation & Setup
    • Time-Related Computation
    • User Interface Construction
    • Visualization & Graphics
    • Random Paclet
    • Alphabetical List
  • Using Paclets
    • Get Started
    • Download Definition Notebook
  • Learn More about Wolfram Language

DataReshapers

Guides

  • Data reshaping functions

Tech Notes

  • Data transformation workflows
  • Long form data transformation
  • Wide form data transformation

Symbols

  • CrossTabulate
  • CrossTabulationMatrixQ
  • CrossTensorate
  • CrossTensorateSplit
  • DatasetToMatrix
  • GridTableForm
  • LongFormDataset
  • PivotLonger
  • RecordsSummary
  • RecordsToLongFormDataset
  • RecordsToWideFormDataset
  • SeparateColumn
  • ToAutomaticKeysAssociation
  • TypeOfDataToBeReshaped
  • WideFormDataset
AntonAntonov`DataReshapers`
CrossTensorateSplit
​
CrossTensorateSplit
[ct,v]
splits the result
ct
of
CrossTensorate
along the variable
v
.
​
​
CrossTensorateSplit
[v]
makes a splitting function of the variables
v
.
​
Details and Options

Examples  
(2)
Basic Examples  
(1)
Here is a dataset of the Titanic data:
In[1]:=
dsTitanic=ResourceFunction["ExampleDataset"][{"MachineLearning","Titanic"}];​​dsTitanic[1;;-1;;400]
Out[1]=
Here are the contingency values of passenger class, sex, and survival:
In[2]:=
ct=
CrossTensorate
[Count"passenger class"+"passenger sex"+"passenger survival",dsTitanic];​​MatrixForm[ct]
Out[2]//MatrixForm=
female
male
1st
died
5
survived
139
died
118
survived
61
2nd
died
12
survived
94
died
146
survived
25
3rd
died
110
survived
106
died
418
survived
75
Here the obtained tensor is split over the variable "passenger sex" and the corresponding contingency matrices are shown:
In[3]:=
MatrixForm/@
CrossTensorateSplit
[ct,"passenger sex"]
Out[3]=
female
died
survived
1st
5
139
2nd
12
94
3rd
110
106
,male
died
survived
1st
118
61
2nd
146
25
3rd
418
75

Scope  
(1)

SeeAlso
CrossTensorate
RelatedGuides
▪
Data reshaping functions
""

© 2025 Wolfram. All rights reserved.

  • Legal & Privacy Policy
  • Contact Us
  • WolframAlpha.com
  • WolframCloud.com