<?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: Merging Rows in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Merging-Rows/m-p/61158#M33227</link>
    <description>&lt;P&gt;I think you need to say more about your intent with merging rows.&amp;nbsp; I've had data sets where there were multiple rows that needed to be "combined" into a single observation.&amp;nbsp; How to do it depended on whether I wanted the average or sum (or....) of those rows.&amp;nbsp; Other times, there are just multiple rows with identical data and I want to eliminate the multiple observations.&amp;nbsp; So, I think you need to say why there are multiple rows to begin with and what you are attempting to reduce them to single rows for.&lt;/P&gt;</description>
    <pubDate>Tue, 26 Jun 2018 14:31:26 GMT</pubDate>
    <dc:creator>dale_lehman</dc:creator>
    <dc:date>2018-06-26T14:31:26Z</dc:date>
    <item>
      <title>Merging Rows</title>
      <link>https://community.jmp.com/t5/Discussions/Merging-Rows/m-p/61129#M33214</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was just wondering if there was away to merge two rows from the same data table using JSL? I was contemplating using the Join function but I'm not entirely sure how that will work.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jun 2018 12:57:32 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Merging-Rows/m-p/61129#M33214</guid>
      <dc:creator>Jaz</dc:creator>
      <dc:date>2018-06-26T12:57:32Z</dc:date>
    </item>
    <item>
      <title>Re: Merging Rows</title>
      <link>https://community.jmp.com/t5/Discussions/Merging-Rows/m-p/61132#M33217</link>
      <description>&lt;P&gt;You need to just try it.&amp;nbsp; Interactively join the table to it's self and see the results.&amp;nbsp; If you then open the "Source" entry in the Tables Panel on the left of the data table, you will see the JSL used to join the data table with it'self&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jun 2018 13:07:34 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Merging-Rows/m-p/61132#M33217</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2018-06-26T13:07:34Z</dc:date>
    </item>
    <item>
      <title>Re: Merging Rows</title>
      <link>https://community.jmp.com/t5/Discussions/Merging-Rows/m-p/61158#M33227</link>
      <description>&lt;P&gt;I think you need to say more about your intent with merging rows.&amp;nbsp; I've had data sets where there were multiple rows that needed to be "combined" into a single observation.&amp;nbsp; How to do it depended on whether I wanted the average or sum (or....) of those rows.&amp;nbsp; Other times, there are just multiple rows with identical data and I want to eliminate the multiple observations.&amp;nbsp; So, I think you need to say why there are multiple rows to begin with and what you are attempting to reduce them to single rows for.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jun 2018 14:31:26 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Merging-Rows/m-p/61158#M33227</guid>
      <dc:creator>dale_lehman</dc:creator>
      <dc:date>2018-06-26T14:31:26Z</dc:date>
    </item>
    <item>
      <title>Re: Merging Rows</title>
      <link>https://community.jmp.com/t5/Discussions/Merging-Rows/m-p/61159#M33228</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Basically I have two heading rows for each of my columns, the first is the main heading of the column and the second is the sub-heading of the column. I want to combine the heading and subheading rows so that they only take up one row. I'm aware I could do this by accessing values and replacing the contents of the first row and deleting the second but this seems like a very arduous task. I would much rather there be a concise function that could help me?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jun 2018 14:42:22 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Merging-Rows/m-p/61159#M33228</guid>
      <dc:creator>Jaz</dc:creator>
      <dc:date>2018-06-26T14:42:22Z</dc:date>
    </item>
    <item>
      <title>Re: Merging Rows</title>
      <link>https://community.jmp.com/t5/Discussions/Merging-Rows/m-p/61160#M33229</link>
      <description>&lt;P&gt;I'll leave it for someone better at scripting to answer your specific question.&amp;nbsp; But I've only had that particular issue occur when importing data from elsewhere (such as a spreadsheet or text file).&amp;nbsp; If that is the case, it is best solved at the file opening stage - you can change the open setting so that data starts on line 3 and the heading comprises 2 lines rather than 1.&amp;nbsp; It would seem odd to create a data set in JMP where the heading is put on two lines to start with.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jun 2018 14:46:58 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Merging-Rows/m-p/61160#M33229</guid>
      <dc:creator>dale_lehman</dc:creator>
      <dc:date>2018-06-26T14:46:58Z</dc:date>
    </item>
    <item>
      <title>Re: Merging Rows</title>
      <link>https://community.jmp.com/t5/Discussions/Merging-Rows/m-p/61161#M33230</link>
      <description>&lt;P&gt;Ok, thanks anyway. When I try opening via "Data With Preview" and try to enter the first two line numbers in the "Files contain column names on line: ", the wizard's won't let me enter two. Any suggestions? &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jun 2018 15:07:59 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Merging-Rows/m-p/61161#M33230</guid>
      <dc:creator>Jaz</dc:creator>
      <dc:date>2018-06-26T15:07:59Z</dc:date>
    </item>
    <item>
      <title>Re: Merging Rows</title>
      <link>https://community.jmp.com/t5/Discussions/Merging-Rows/m-p/61176#M33233</link>
      <description>&lt;P&gt;What kind of file are you opening?&amp;nbsp; If it is a text file, make sure the radio button says "data with preview" and if it is Excel then make the radio button for the "Always force row 1..." is set to Never.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jun 2018 15:19:45 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Merging-Rows/m-p/61176#M33233</guid>
      <dc:creator>dale_lehman</dc:creator>
      <dc:date>2018-06-26T15:19:45Z</dc:date>
    </item>
    <item>
      <title>Re: Merging Rows</title>
      <link>https://community.jmp.com/t5/Discussions/Merging-Rows/m-p/61179#M33234</link>
      <description>&lt;P&gt;Try the &lt;A href="https://community.jmp.com/t5/JMP-Add-Ins/Column-Name-Utilities-II/ta-p/33626" target="_self"&gt;Column Name Utilities&lt;/A&gt; add-in by&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/494"&gt;@XanGregg&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/4530"&gt;@MikeD_Anderson&lt;/a&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It has tools for promoting a row into the column names. I think that might be what you're looking for.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jun 2018 15:34:07 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Merging-Rows/m-p/61179#M33234</guid>
      <dc:creator>Jeff_Perkinson</dc:creator>
      <dc:date>2018-06-26T15:34:07Z</dc:date>
    </item>
    <item>
      <title>Re: Merging Rows</title>
      <link>https://community.jmp.com/t5/Discussions/Merging-Rows/m-p/69030#M34986</link>
      <description>&lt;P&gt;My question is similar to this one I think.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My table has a column with repeating values but the rows have unique values and I am wondering if it is possible to consolidate the repeating rows in to a single row with new columns. Example below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Subject&amp;nbsp; &amp;nbsp;Value&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Subject Value Value2&lt;/P&gt;&lt;P&gt;A&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&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; A&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2&lt;/P&gt;&lt;P&gt;A&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ----&amp;gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; B&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;4&lt;/P&gt;&lt;P&gt;B&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 3&lt;/P&gt;&lt;P&gt;B&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;4&lt;/P&gt;</description>
      <pubDate>Tue, 21 Aug 2018 14:45:18 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Merging-Rows/m-p/69030#M34986</guid>
      <dc:creator>chessknt87</dc:creator>
      <dc:date>2018-08-21T14:45:18Z</dc:date>
    </item>
    <item>
      <title>Re: Merging Rows</title>
      <link>https://community.jmp.com/t5/Discussions/Merging-Rows/m-p/69032#M34988</link>
      <description>&lt;P&gt;By using&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; Tables==&amp;gt;Split&lt;/P&gt;
&lt;P&gt;you&amp;nbsp;will&amp;nbsp; be able to do what you want&lt;/P&gt;
&lt;P&gt;or with&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; Tables==&amp;gt;Transpose&lt;/P&gt;</description>
      <pubDate>Tue, 21 Aug 2018 14:50:28 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Merging-Rows/m-p/69032#M34988</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2018-08-21T14:50:28Z</dc:date>
    </item>
    <item>
      <title>Re: Merging Rows</title>
      <link>https://community.jmp.com/t5/Discussions/Merging-Rows/m-p/69043#M34991</link>
      <description>&lt;P&gt;Thank you for your reply. The problem is that I want it to create new column labels since the data in the table has nothing to split by. If I group by subject and ask it to split value and date what do I pick for split by? I want each observation to just be listed under a new column created for a duplicate observation&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Subject&amp;nbsp; &amp;nbsp;Value Date&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Subject Value Date&amp;nbsp; Value2 Date2 value3&amp;nbsp; date3&lt;/P&gt;&lt;P&gt;A&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; x&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;A&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; x&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;y&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .&lt;/P&gt;&lt;P&gt;A&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; y&amp;nbsp; &amp;nbsp; &amp;nbsp; ----&amp;gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; B&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;z&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 4&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;g&amp;nbsp; &amp;nbsp; &amp;nbsp;5&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;f&lt;/P&gt;&lt;P&gt;B&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;z&lt;/P&gt;&lt;P&gt;B&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;4&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; g&lt;/P&gt;&lt;P&gt;B&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;5&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; f&lt;/P&gt;</description>
      <pubDate>Tue, 21 Aug 2018 15:07:02 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Merging-Rows/m-p/69043#M34991</guid>
      <dc:creator>chessknt87</dc:creator>
      <dc:date>2018-08-21T15:07:02Z</dc:date>
    </item>
    <item>
      <title>Re: Merging Rows</title>
      <link>https://community.jmp.com/t5/Discussions/Merging-Rows/m-p/69065#M34993</link>
      <description>&lt;P&gt;Create a new column that gives a sequence number for each of your subjects&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;if(row()==1,counter-1);
If(lag(:subject) != :subject, counter=1, counter=counter+1);
counter;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Then you can split by&amp;nbsp;the new column&lt;/P&gt;</description>
      <pubDate>Tue, 21 Aug 2018 15:16:34 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Merging-Rows/m-p/69065#M34993</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2018-08-21T15:16:34Z</dc:date>
    </item>
    <item>
      <title>Re: Merging Rows</title>
      <link>https://community.jmp.com/t5/Discussions/Merging-Rows/m-p/188864#M40756</link>
      <description>&lt;P&gt;Hi! I've got a similar problem. I'd like to merge rows with the same time value without creating new columns. So in the example below rows 75629 and 75630 would become one row with more data in it and 75631/2 would move up one number. Is there a way to do something like this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/16625i614D1A7499C46BD4/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Mar 2019 14:53:34 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Merging-Rows/m-p/188864#M40756</guid>
      <dc:creator>kevin_herlihy_l</dc:creator>
      <dc:date>2019-03-22T14:53:34Z</dc:date>
    </item>
    <item>
      <title>Re: Merging Rows</title>
      <link>https://community.jmp.com/t5/Discussions/Merging-Rows/m-p/188966#M40763</link>
      <description>&lt;P&gt;If it's a matter of dealing with the missing values for those columns you might try using &lt;A href="https://www.jmp.com/support/help/14-2/create-a-summary-table.shtml" target="_blank"&gt;Tables-&amp;gt;Summary&lt;/A&gt; to group by your datetime column and use the Max statististic for all those columns.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JMPScreenSnapz323.png" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/16629i5B6E23FCD9B45598/image-size/large?v=v2&amp;amp;px=999" role="button" title="JMPScreenSnapz323.png" alt="JMPScreenSnapz323.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 23 Mar 2019 14:09:48 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Merging-Rows/m-p/188966#M40763</guid>
      <dc:creator>Jeff_Perkinson</dc:creator>
      <dc:date>2019-03-23T14:09:48Z</dc:date>
    </item>
    <item>
      <title>Re: Merging Rows</title>
      <link>https://community.jmp.com/t5/Discussions/Merging-Rows/m-p/308207#M56257</link>
      <description>&lt;P&gt;You mentioned this in a post a few years ago "&lt;SPAN&gt;I've had data sets where there were multiple rows that needed to be "combined" into a single observation.&amp;nbsp; How to do it depended on whether I wanted the average or sum (or....) of those rows."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Can you tell me how to do this? (I would want a sum of the value in a variable for unique subject IDs with multiple rows of data)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Sep 2020 18:11:05 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Merging-Rows/m-p/308207#M56257</guid>
      <dc:creator>plfazeli</dc:creator>
      <dc:date>2020-09-16T18:11:05Z</dc:date>
    </item>
    <item>
      <title>Re: Merging Rows</title>
      <link>https://community.jmp.com/t5/Discussions/Merging-Rows/m-p/308248#M56260</link>
      <description>Use the Summary platform&lt;BR /&gt;     Tables=&amp;gt;Summary</description>
      <pubDate>Wed, 16 Sep 2020 18:53:59 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Merging-Rows/m-p/308248#M56260</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-09-16T18:53:59Z</dc:date>
    </item>
  </channel>
</rss>

