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`
LongFormDataset
​
LongFormDataset[data]
converts the argument data into a long-form dataset with columns
"AutomaticKey"
,
"Variable"
and
"Value"
.
​
​
LongFormDataset[data,idcols]
converts the argument data into a long-form dataset with columns
idcols
and columns
"Variable"
and
"Value"
derived from the columns of
data
that are not in
idcols
.
​
​
LongFormDataset[data,idcols,valcols]
converts the argument data into a long-form dataset with columns
idcols
and columns
"Variable"
and
"Value"
derived from
valcols
.
​
Details and Options

Examples  
(10)
Basic Examples  
(1)
Here is a simple dataset:
In[1]:=
dataset=
Block[
]
Out[1]=
Here is a long form conversion with a specified identifier column and variable columns:
In[2]:=
LongFormDataset
[dataset,"ID",{"a","b"}]
Out[2]=
Here is another long form derived with an automatically determined identifier column and variable columns:
In[3]:=
LongFormDataset
[dataset]
Out[3]=
Here is a conversion to long form with identifier columns
"a"
and
"b"
:
In[4]:=
LongFormDataset
[dataset,{"a","b"}]
Out[4]=
Scope  
(1)

Options  
(3)

Applications  
(2)

Properties & Relations  
(2)

Possible Issues  
(1)

SeeAlso
WideFormDataset
 
▪
SeparateColumn
RelatedGuides
▪
Data reshaping functions
""

© 2025 Wolfram. All rights reserved.

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