<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Help with transposing data from 1 column across a few columns and repeat in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Help-with-transposing-data-from-1-column-across-a-few-columns/m-p/259942#M51026</link>
    <description>&lt;P&gt;This is something I do on a regular basis.&amp;nbsp; Many users insert tables(not data tables) into their discussions, which when copy and pasted into a new JMP data table, end up with each element from the table insert as a separate row for the one and only copy in the JMP data table.&amp;nbsp; So here is the technique that I use.&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Create a new column.&lt;/LI&gt;
&lt;LI&gt;Go to the Col Info dialog for the new column&lt;/LI&gt;
&lt;LI&gt;Under the Down Arrow for Initialize Data, select Sequence Data&lt;/LI&gt;
&lt;LI&gt;Since you have 5 repeating rows, specify the "To" value to 5&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="repeat1.PNG" style="width: 920px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/23315i367EE26952E49ECA/image-size/large?v=v2&amp;amp;px=999" role="button" title="repeat1.PNG" alt="repeat1.PNG" /&gt;&lt;/span&gt;&lt;/LI&gt;
&lt;LI&gt;Click OK &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="repeat2.PNG" style="width: 413px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/23316iE39CFE747BC1D9E8/image-size/large?v=v2&amp;amp;px=999" role="button" title="repeat2.PNG" alt="repeat2.PNG" /&gt;&lt;/span&gt;&lt;/LI&gt;
&lt;LI&gt;&amp;nbsp;Now go to Tables==&amp;gt;Split and specify&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="repeat3.PNG" style="width: 558px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/23317i9E908B090AFA5CAB/image-size/large?v=v2&amp;amp;px=999" role="button" title="repeat3.PNG" alt="repeat3.PNG" /&gt;&lt;/span&gt;&lt;/LI&gt;
&lt;LI&gt;Click OK and you get&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="repeat4.PNG" style="width: 468px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/23318iEFF547B9C2A2C119/image-size/large?v=v2&amp;amp;px=999" role="button" title="repeat4.PNG" alt="repeat4.PNG" /&gt;&lt;/span&gt;&lt;/LI&gt;
&lt;/OL&gt;</description>
    <pubDate>Thu, 23 Apr 2020 00:40:00 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2020-04-23T00:40:00Z</dc:date>
    <item>
      <title>Help with transposing data from 1 column across a few columns and repeat</title>
      <link>https://community.jmp.com/t5/Discussions/Help-with-transposing-data-from-1-column-across-a-few-columns/m-p/259925#M51022</link>
      <description>&lt;P&gt;Hello - I have been searching but haven't quite figured out how to do the following: I have a text file that contains all the data (2600+ rows worth) in one column. The data is of type character and sometimes is more than 1 word. The data is ordered in groups of 5 rows. I have imported the text file and created the 5 columns in which I would like to relocate all the data. That is, I would like to transpose the content from the first 5 rows into 5 columns (1 row per column). Then transpose the next 5 rows into those same 5 columns. Repeat until all the data is transposed across those same 5 columns.&lt;/P&gt;&lt;P&gt;Here's a quick example I mocked up using numbers, however my data is actually of character type (and sometimes contains more than 1 word).&lt;/P&gt;&lt;P&gt;I suspect the solution will require a "for" loop and JSL, however I have only dabbled a bit in JSL code and can't seem to get all my variables right as well as how to index the rows and columns.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Mock data transformation.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/23314i6B35AE4B327A2DC5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Mock data transformation.png" alt="Mock data transformation.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Apr 2020 23:00:04 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Help-with-transposing-data-from-1-column-across-a-few-columns/m-p/259925#M51022</guid>
      <dc:creator>AxelFoolery</dc:creator>
      <dc:date>2020-04-22T23:00:04Z</dc:date>
    </item>
    <item>
      <title>Re: Help with transposing data from 1 column across a few columns and repeat</title>
      <link>https://community.jmp.com/t5/Discussions/Help-with-transposing-data-from-1-column-across-a-few-columns/m-p/259942#M51026</link>
      <description>&lt;P&gt;This is something I do on a regular basis.&amp;nbsp; Many users insert tables(not data tables) into their discussions, which when copy and pasted into a new JMP data table, end up with each element from the table insert as a separate row for the one and only copy in the JMP data table.&amp;nbsp; So here is the technique that I use.&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Create a new column.&lt;/LI&gt;
&lt;LI&gt;Go to the Col Info dialog for the new column&lt;/LI&gt;
&lt;LI&gt;Under the Down Arrow for Initialize Data, select Sequence Data&lt;/LI&gt;
&lt;LI&gt;Since you have 5 repeating rows, specify the "To" value to 5&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="repeat1.PNG" style="width: 920px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/23315i367EE26952E49ECA/image-size/large?v=v2&amp;amp;px=999" role="button" title="repeat1.PNG" alt="repeat1.PNG" /&gt;&lt;/span&gt;&lt;/LI&gt;
&lt;LI&gt;Click OK &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="repeat2.PNG" style="width: 413px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/23316iE39CFE747BC1D9E8/image-size/large?v=v2&amp;amp;px=999" role="button" title="repeat2.PNG" alt="repeat2.PNG" /&gt;&lt;/span&gt;&lt;/LI&gt;
&lt;LI&gt;&amp;nbsp;Now go to Tables==&amp;gt;Split and specify&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="repeat3.PNG" style="width: 558px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/23317i9E908B090AFA5CAB/image-size/large?v=v2&amp;amp;px=999" role="button" title="repeat3.PNG" alt="repeat3.PNG" /&gt;&lt;/span&gt;&lt;/LI&gt;
&lt;LI&gt;Click OK and you get&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="repeat4.PNG" style="width: 468px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/23318iEFF547B9C2A2C119/image-size/large?v=v2&amp;amp;px=999" role="button" title="repeat4.PNG" alt="repeat4.PNG" /&gt;&lt;/span&gt;&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Thu, 23 Apr 2020 00:40:00 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Help-with-transposing-data-from-1-column-across-a-few-columns/m-p/259942#M51026</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-04-23T00:40:00Z</dc:date>
    </item>
    <item>
      <title>Re: Help with transposing data from 1 column across a few columns and repeat</title>
      <link>https://community.jmp.com/t5/Discussions/Help-with-transposing-data-from-1-column-across-a-few-columns/m-p/260427#M51069</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2687"&gt;@txnelson&lt;/a&gt;&amp;nbsp;- Many thanks! Very clever trick, worked beautifully.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Alex&lt;/P&gt;</description>
      <pubDate>Thu, 23 Apr 2020 21:34:16 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Help-with-transposing-data-from-1-column-across-a-few-columns/m-p/260427#M51069</guid>
      <dc:creator>AxelFoolery</dc:creator>
      <dc:date>2020-04-23T21:34:16Z</dc:date>
    </item>
  </channel>
</rss>

