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`
CrossTabulationMatrixQ
​
CrossTabulationMatrixQ[arg]
checks if the argument is contingency matrix.
​
Details and Options

Examples  
(1)
Basic Examples  
(1)
Here is random full array with two columns:
In[1]:=
data=Map[ToString,RandomInteger[3,{30,2}],{-1}];​​Dimensions[data]
Out[1]=
{30,2}
Here is contingency table (a
Dataset
) of that data:
In[2]:=
ds=
CrossTabulate
[data]
Out[2]=
The table above is not a contingency matrix:
In[3]:=
CrossTabulationMatrixQ
[ds]
Out[3]=
False
Here is a contingency matrix:
In[4]:=
m=
CrossTabulate
[data,"Sparse"True]
Out[4]=
SparseMatrixSparseArray
Specified elements: 15
Dimensions: {4,4}
,RowNames{0,1,2,3},ColumnNames{0,1,2,3}
The expression obtained above is a contingency matrix:
In[5]:=
CrossTabulationMatrixQ
[m]
Out[5]=
True
SeeAlso
CrossTabulate
RelatedGuides
▪
Data reshaping functions
""

© 2025 Wolfram. All rights reserved.

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