<?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: Split table is shifting some values in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Split-table-is-shifting-some-values/m-p/529863#M75319</link>
    <description>&lt;P&gt;I suspect that you need to specify a Group variable(s) to define what each row of your output should be defined by&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_0-1659537367319.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/44542i950E4E5432275885/image-size/medium?v=v2&amp;amp;px=400" role="button" title="txnelson_0-1659537367319.png" alt="txnelson_0-1659537367319.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>Wed, 03 Aug 2022 14:36:13 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2022-08-03T14:36:13Z</dc:date>
    <item>
      <title>Split table is shifting some values</title>
      <link>https://community.jmp.com/t5/Discussions/Split-table-is-shifting-some-values/m-p/529738#M75311</link>
      <description>&lt;P&gt;Hi I have this table (attached) to which I've saved the script from the split function.&lt;/P&gt;&lt;P&gt;Essentially the main table has for each sample 2 measurements for each target, "mean_numeric" and "value", each sample has 2 replicates and the 2 measurements should be the same (and are the same as far as I'm aware).&lt;/P&gt;&lt;P&gt;I want to reformat the table using split so for each sample I have a row and then each target measurement is a column, and since there are 2 replicates there should be 2 identical rows, however for some reason some of the target measurement values are getting shifted:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Agustin_0-1659518286043.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/44529iF0D42808DB656D3D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Agustin_0-1659518286043.png" alt="Agustin_0-1659518286043.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Rows 17 and 18 should have the same values as they are the same sample, and they do on the first column but then it switches to 16 and 17 having the same values. Why is this happening?&lt;/P&gt;&lt;P&gt;Here is how I use the split function:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Agustin_1-1659518375514.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/44530i3B5AB15D5DE3A207/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Agustin_1-1659518375514.png" alt="Agustin_1-1659518375514.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Edit: I'm aware I could remove the duplicates from the main table and then split however I'm only showing a snippet of the data, there are other columns that are different across the replicates. And I'd also like to understand what's happening with the split function.&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2023 23:52:22 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Split-table-is-shifting-some-values/m-p/529738#M75311</guid>
      <dc:creator>Agustin</dc:creator>
      <dc:date>2023-06-10T23:52:22Z</dc:date>
    </item>
    <item>
      <title>Re: Split table is shifting some values</title>
      <link>https://community.jmp.com/t5/Discussions/Split-table-is-shifting-some-values/m-p/529863#M75319</link>
      <description>&lt;P&gt;I suspect that you need to specify a Group variable(s) to define what each row of your output should be defined by&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_0-1659537367319.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/44542i950E4E5432275885/image-size/medium?v=v2&amp;amp;px=400" role="button" title="txnelson_0-1659537367319.png" alt="txnelson_0-1659537367319.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>Wed, 03 Aug 2022 14:36:13 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Split-table-is-shifting-some-values/m-p/529863#M75319</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2022-08-03T14:36:13Z</dc:date>
    </item>
    <item>
      <title>Re: Split table is shifting some values</title>
      <link>https://community.jmp.com/t5/Discussions/Split-table-is-shifting-some-values/m-p/530161#M75334</link>
      <description>&lt;P&gt;Yes that works, but it still feels like there is a bug / something isn't working as expected with the split function. If I use the group function I only get one row per replicate rather than 2.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the suggestion though&lt;/P&gt;</description>
      <pubDate>Thu, 04 Aug 2022 06:58:38 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Split-table-is-shifting-some-values/m-p/530161#M75334</guid>
      <dc:creator>Agustin</dc:creator>
      <dc:date>2022-08-04T06:58:38Z</dc:date>
    </item>
    <item>
      <title>Re: Split table is shifting some values</title>
      <link>https://community.jmp.com/t5/Discussions/Split-table-is-shifting-some-values/m-p/530202#M75338</link>
      <description>&lt;P&gt;I think the issue is not having the Group variable(s) defined properly.&amp;nbsp; Looking closer, I believe that if you create a new column and add it to the Group specification, you will get what you want.&amp;nbsp; I would like for you to try the following:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Sort the data table by Sample ID and mean_numeric&lt;/LI&gt;
&lt;LI&gt;Add a new column to your table
&lt;OL&gt;
&lt;LI&gt;Name it "count"&lt;/LI&gt;
&lt;LI&gt;Apply this formula&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Col Cumulative Sum( 1, :sample ID, :mean_numeric )&lt;/LI&gt;
&lt;/OL&gt;
&lt;/LI&gt;
&lt;LI&gt;Now split the data as before, except, set the Group selection to both "sample ID" and "count"&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;Here is the table I get&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_0-1659605051124.png" style="width: 921px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/44555i298E862EA0B0DCC4/image-dimensions/921x380?v=v2" width="921" height="380" role="button" title="txnelson_0-1659605051124.png" alt="txnelson_0-1659605051124.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Aug 2022 09:24:40 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Split-table-is-shifting-some-values/m-p/530202#M75338</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2022-08-04T09:24:40Z</dc:date>
    </item>
    <item>
      <title>Re: Split table is shifting some values</title>
      <link>https://community.jmp.com/t5/Discussions/Split-table-is-shifting-some-values/m-p/530234#M75341</link>
      <description>&lt;P&gt;Thank you, that works. I'll bear in mind that the results of the split function may be wrong without using a grouping variable.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Aug 2022 11:39:30 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Split-table-is-shifting-some-values/m-p/530234#M75341</guid>
      <dc:creator>Agustin</dc:creator>
      <dc:date>2022-08-04T11:39:30Z</dc:date>
    </item>
  </channel>
</rss>

