Transpose long to wide in SAS

后端 未结 3 578
别跟我提以往
别跟我提以往 2021-01-28 18:53

I have a very large data set (18 million observations) that I would like to transpose by subsetting based on one variable and creating 900 new variables out of those sub/ets. Ex

3条回答
  •  温柔的废话
    2021-01-28 19:03

    Here are links to well tested in battle macros from the book "Data Preparation for Analytics"

    From the sas community wiki you can download macro definitions.

    Goto http://support.sas.com/kb/32/121.html for transposing from WIDE to LONG and http://support.sas.com/kb/32/122.html for transposing from LONG to WIDE.

    More Details on "Data Preparation for Analytics" can be found under http://www.sascommunity.org/wiki/Data_Preparation_for_Analytics, where you can download all macros, programs and datasets for the book.

    Hope this help

提交回复
热议问题