Raynald's SPSS Tools
  • Syntax
    • SPSS Syntax Home
    • Sample Syntax Library
    • Learning Syntax
    • Debugging SPSS Syntax
    • Standard Data Files
  • Macros
    • SPSS Macros — Home
    • Sample Macro Library
    • Learning Macros
    • Debugging Macros
    • Kirill's SPSS Macros Page
  • Scripts
    • SPSS Scripts — Home
    • Sample Scripts Library
    • Learning Scripts
    • The Asynchronous Problem
  • Python
    • Python Scripts Home
    • Sample Python Library
  • R
    • R Scripts — Home
    • Sample R Library
  • Resources
    • Resources Overview
    • Blog
    • Links to SPSS (and not only SPSS) resources
    • SPSS Programming and Data Management Book
  • Sitemap
  • Feedback
  • en
    • Русский
    • Español
    • Portugues
    • Deutsch
    • Français
    • Italiano
  1. Home
  2. Syntax
  3. Sample Syntax Library
  4. Restructure File

Restructure File

  • Allocate dummy variables to 24 hours
  • Automated data transform from tall to wide
  • Automated Data Restructure
  • Automated restructure from long to wide
  • Collapse empty variables within a case
  • Deduplicate cases while keeping all the information
  • Each variable occupies 5 rows of 10 columns
  • Find beginning and end of continuous periods
  • From many to one example1
  • From many to one example2
  • From many to one with alpha data
  • From many to one with specific order of new variables
  • From one to Many simple
  • From one to many with indicator variable
  • Restructure data fileexample1
  • Restructure data fileexample2
  • Restructure data fileexample3
  • Restructure data fileexample4
  • Restructure from tall to wide (general solution)
  • Restructure time periods to a time matrix
  • Restructure to calculate Kappa
  • Transpose(FLIP) string variables
  • Use Former Variable Names As Value Labels Restructuring data from one line per case to many, saving nariable names as value labels
  • VarsToCases and CasesToVars
Related pages

...

Navigate from here
  • Sample Syntax Library
  • Working with missing values
  • Sample Size and Power
  • Allocate dummy variables to 24 hours
  • Get random page
  • Back to top

 


 

Raynald's SPSS Tools © 2001–2025, Raynald Levesque, Anton Balabanov. Click to learn more: About the project