<?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: Merge data by time stamp in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Merge-data-by-time-stamp/m-p/35497#M20944</link>
    <description>Oh I missed to say that the code was generated by Mike's approach. I should have mentioned the steps to get to the skript, Sorry. In the data tabel I just saved the script from the interactive work. next time I'll do better ;)&lt;/img&gt;</description>
    <pubDate>Wed, 08 Feb 2017 15:08:59 GMT</pubDate>
    <dc:creator>martindemel</dc:creator>
    <dc:date>2017-02-08T15:08:59Z</dc:date>
    <item>
      <title>Merge data by time stamp</title>
      <link>https://community.jmp.com/t5/Discussions/Merge-data-by-time-stamp/m-p/35147#M20733</link>
      <description>&lt;P&gt;I have a data set with a Column of Date/Time (m/d/yy h:m:s) and two colums of data.&lt;/P&gt;&lt;P&gt;I am trying to move/combine/correct the numbers in each data colum to match the Date Time stamp.&lt;/P&gt;&lt;P&gt;Here is a sample of two rows that shold have the columns combined:&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.PNG" style="width: 576px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/4974iB0CBDFAA10E80489/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Notice the time stamps are the same, yet I cannot get them to combine correctly on the same row.&lt;/P&gt;&lt;P&gt;I have about 5K+ lines of data, but I work with more, and this type of thing all the time.&lt;/P&gt;&lt;P&gt;I am sure there is an easy way to get this to combine, but I cannot figure this out.&lt;/P&gt;&lt;P&gt;I am using JMP 12 and I'm not versed in JSL. &amp;nbsp;If there is a step by step using the menus, that would help me.&lt;/P&gt;&lt;P&gt;Thanks for any help that can be provided.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2017 17:20:02 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Merge-data-by-time-stamp/m-p/35147#M20733</guid>
      <dc:creator>mmcclusk0</dc:creator>
      <dc:date>2017-01-31T17:20:02Z</dc:date>
    </item>
    <item>
      <title>Re: Merge data by time stamp</title>
      <link>https://community.jmp.com/t5/Discussions/Merge-data-by-time-stamp/m-p/35150#M20736</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is it true that for each time stamp you have two rows analog to the ones in the screenshot? So there is always just one value per column per timestamp?&lt;/P&gt;
&lt;P&gt;If so you might wanna use SUMMARY:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Data Table( "Untitled 6" ) &amp;lt;&amp;lt; Summary(
	Group( :Column 1 ),
	Sum( :Column 2 ),
	Sum( :Column 3 ),
	Freq( "None" ),
	Weight( "None" )
)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Untitled 6 is the table attached with Column 1 would be your time stamp column, Column 2 and 3 the data columns.&lt;/P&gt;
&lt;P&gt;And the result would look like this you'll see after executing the script in the table&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2017 17:35:33 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Merge-data-by-time-stamp/m-p/35150#M20736</guid>
      <dc:creator>martindemel</dc:creator>
      <dc:date>2017-01-31T17:35:33Z</dc:date>
    </item>
    <item>
      <title>Re: Merge data by time stamp</title>
      <link>https://community.jmp.com/t5/Discussions/Merge-data-by-time-stamp/m-p/35157#M20741</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2742"&gt;@martindemel&lt;/a&gt; wrote:&lt;BR /&gt;&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it true that for each time stamp you have two rows analog to the ones in the screenshot? So there is always just one value per column per timestamp? &amp;nbsp;&lt;STRONG&gt;Yes, this is true.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If so you might wanna use SUMMARY:&lt;/P&gt;&lt;PRE&gt;Data Table( "Untitled 6" ) &amp;lt;&amp;lt; Summary(
	Group( :Column 1 ),
	Sum( :Column 2 ),
	Sum( :Column 3 ),
	Freq( "None" ),
	Weight( "None" )
)&lt;/PRE&gt;&lt;P&gt;Untitled 6 is the table attached with Column 1 would be your time stamp column, Column 2 and 3 the data columns.&lt;/P&gt;&lt;P&gt;And the result would look like this you'll see after executing the script in the table&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I got your example to work, but adapting it to my data table, not so much.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2017 19:05:53 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Merge-data-by-time-stamp/m-p/35157#M20741</guid>
      <dc:creator>mmcclusk0</dc:creator>
      <dc:date>2017-01-31T19:05:53Z</dc:date>
    </item>
    <item>
      <title>Re: Merge data by time stamp</title>
      <link>https://community.jmp.com/t5/Discussions/Merge-data-by-time-stamp/m-p/35158#M20742</link>
      <description>&lt;P&gt;I did a little playing around with the Summary function and I think I may have it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the help.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2017 19:14:14 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Merge-data-by-time-stamp/m-p/35158#M20742</guid>
      <dc:creator>mmcclusk0</dc:creator>
      <dc:date>2017-01-31T19:14:14Z</dc:date>
    </item>
    <item>
      <title>Re: Merge data by time stamp</title>
      <link>https://community.jmp.com/t5/Discussions/Merge-data-by-time-stamp/m-p/35165#M20747</link>
      <description>&lt;P&gt;You could also do a similar operation by using Tables &amp;gt; Summary. &amp;nbsp;Going this route has the advantage of writing the JSL for your specific case, so you can recycle the code later if you need it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;M&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2017 22:46:25 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Merge-data-by-time-stamp/m-p/35165#M20747</guid>
      <dc:creator>MikeD_Anderson</dc:creator>
      <dc:date>2017-01-31T22:46:25Z</dc:date>
    </item>
    <item>
      <title>Re: Merge data by time stamp</title>
      <link>https://community.jmp.com/t5/Discussions/Merge-data-by-time-stamp/m-p/35214#M20782</link>
      <description>&lt;P&gt;He didn't want code, so that is an added advantage ;)&lt;/img&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Feb 2017 15:56:59 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Merge-data-by-time-stamp/m-p/35214#M20782</guid>
      <dc:creator>David_Burnham</dc:creator>
      <dc:date>2017-02-02T15:56:59Z</dc:date>
    </item>
    <item>
      <title>Re: Merge data by time stamp</title>
      <link>https://community.jmp.com/t5/Discussions/Merge-data-by-time-stamp/m-p/35497#M20944</link>
      <description>Oh I missed to say that the code was generated by Mike's approach. I should have mentioned the steps to get to the skript, Sorry. In the data tabel I just saved the script from the interactive work. next time I'll do better ;)&lt;/img&gt;</description>
      <pubDate>Wed, 08 Feb 2017 15:08:59 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Merge-data-by-time-stamp/m-p/35497#M20944</guid>
      <dc:creator>martindemel</dc:creator>
      <dc:date>2017-02-08T15:08:59Z</dc:date>
    </item>
    <item>
      <title>Re: Merge data by time stamp</title>
      <link>https://community.jmp.com/t5/Discussions/Merge-data-by-time-stamp/m-p/35764#M21107</link>
      <description>&lt;P&gt;How would I run&amp;nbsp;a similar script but not have&amp;nbsp;the values of "column 2" and "column 3" added together? I would still like to have "column 1" grouped together, but would like to have the values from "column 2" and "column 3" in different columns, but the&amp;nbsp;same row.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2017 16:35:50 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Merge-data-by-time-stamp/m-p/35764#M21107</guid>
      <dc:creator>KellyK</dc:creator>
      <dc:date>2017-02-14T16:35:50Z</dc:date>
    </item>
    <item>
      <title>Re: Merge data by time stamp</title>
      <link>https://community.jmp.com/t5/Discussions/Merge-data-by-time-stamp/m-p/35971#M21190</link>
      <description>&lt;P&gt;Hi KellyK,&lt;/P&gt;
&lt;P&gt;may I do not get your question right, but here is the original and the resulting table as a picture:&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Unbenannt.PNG" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/5225i61A53B97E044829B/image-size/large?v=v2&amp;amp;px=999" role="button" title="Unbenannt.PNG" alt="Unbenannt.PNG" /&gt;&lt;/span&gt;:&lt;/P&gt;
&lt;P&gt;The column "Sum(Column 2)" is only the sum of Column 2 and not of 2 and 3. The only other thing I could suggest what you mean is that you want to have the left table and the missing values filled. This will create duplicate values but keep the four rows.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you describe in more detail what you want to achieve, thx.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2017 01:06:36 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Merge-data-by-time-stamp/m-p/35971#M21190</guid>
      <dc:creator>martindemel</dc:creator>
      <dc:date>2017-02-17T01:06:36Z</dc:date>
    </item>
    <item>
      <title>Re: Merge data by time stamp</title>
      <link>https://community.jmp.com/t5/Discussions/Merge-data-by-time-stamp/m-p/36021#M21207</link>
      <description>&lt;P&gt;Sorry, I did not do a good job explaining my question. I have a table that contains two different ID tags in the same column. Each ID tag correlates with a sample value and a timestamp in the next two columns. I applied a round formula to my timestamps so that they record every 10 minutes. I would like to separate the ID tag column so that each ID has its own column associated with the timestamp. I would also like to have the sample value for the ID tag and timestamp in the same row. There are multiple timestamps with the same time so I would like to have a mean of the sample value in the row. I've split the Table by TagID and splitting the columns by TagID, SampleValue, and the rounded timestamp. I then ran the script you posted, but substituted mean for sum. The table was almost exactly what I wanted, but the mean values are off a bit since the timestamps for each tag aren't the exact same. Any ideas on how to fix this issue?&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Initial JMP.png" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/5242iB7EDF61E38EC40EC/image-size/large?v=v2&amp;amp;px=999" role="button" title="Initial JMP.png" alt="Initial JMP.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Final JMP.png" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/5243i1438630695CDBEAF/image-size/large?v=v2&amp;amp;px=999" role="button" title="Final JMP.png" alt="Final JMP.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2017 16:11:03 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Merge-data-by-time-stamp/m-p/36021#M21207</guid>
      <dc:creator>KellyK</dc:creator>
      <dc:date>2017-02-17T16:11:03Z</dc:date>
    </item>
    <item>
      <title>Re: Merge data by time stamp</title>
      <link>https://community.jmp.com/t5/Discussions/Merge-data-by-time-stamp/m-p/36249#M21311</link>
      <description>&lt;P&gt;Hi Kelly,&lt;/P&gt;
&lt;P&gt;I'm glad&amp;nbsp;that the summary function was of help. You mentioned you calculate the mean over the rounded timestamps. therefore you get the means just for those rounded timestamps. What I'm confused about is your comment on "the means are off a bit because the timestamps do not align". What do you expect from the mean to look like? Do you have comparison values or do you mean it would be good to have a mean for every exact time stamp?&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Martin&lt;/P&gt;</description>
      <pubDate>Wed, 22 Feb 2017 20:11:52 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Merge-data-by-time-stamp/m-p/36249#M21311</guid>
      <dc:creator>martindemel</dc:creator>
      <dc:date>2017-02-22T20:11:52Z</dc:date>
    </item>
    <item>
      <title>Re: Merge data by time stamp</title>
      <link>https://community.jmp.com/t5/Discussions/Merge-data-by-time-stamp/m-p/36251#M21312</link>
      <description>&lt;P&gt;I'm happy with how the table looks.&amp;nbsp;The numbers in the columns&amp;nbsp;are off though.&amp;nbsp;TagID 3322 does not have a timestamp at 4:10 PM, but when I do the mean function a SampleValue is in the 4:10 PM row. For the 4:20 PM timestamp, the SampleValue mean is not correct for the 3322 Tag. It averages the values for one of the 4:20 timestamps and one of the 4:30 timestamps.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Feb 2017 20:29:17 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Merge-data-by-time-stamp/m-p/36251#M21312</guid>
      <dc:creator>KellyK</dc:creator>
      <dc:date>2017-02-22T20:29:17Z</dc:date>
    </item>
    <item>
      <title>Re: Merge data by time stamp</title>
      <link>https://community.jmp.com/t5/Discussions/Merge-data-by-time-stamp/m-p/36255#M21313</link>
      <description>I think I know what's going on here. The first column name is "Column 4 3317" which is not what you should have. There should be just "Column 4". Then you will see a empty value in Mean (SampleValue, 3322). &lt;BR /&gt;Please test the following in the table menu "Summary": &lt;BR /&gt;Group -&amp;gt; Column 4&lt;BR /&gt;Mean -&amp;gt; SampleValue&lt;BR /&gt;Subgroup -&amp;gt; TagID&lt;BR /&gt;&lt;BR /&gt;Does that fix your issue?</description>
      <pubDate>Wed, 22 Feb 2017 21:27:45 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Merge-data-by-time-stamp/m-p/36255#M21313</guid>
      <dc:creator>martindemel</dc:creator>
      <dc:date>2017-02-22T21:27:45Z</dc:date>
    </item>
    <item>
      <title>Re: Merge data by time stamp</title>
      <link>https://community.jmp.com/t5/Discussions/Merge-data-by-time-stamp/m-p/36256#M21314</link>
      <description>&lt;P&gt;That worked! Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 22 Feb 2017 21:38:02 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Merge-data-by-time-stamp/m-p/36256#M21314</guid>
      <dc:creator>KellyK</dc:creator>
      <dc:date>2017-02-22T21:38:02Z</dc:date>
    </item>
    <item>
      <title>Re: Merge data by time stamp</title>
      <link>https://community.jmp.com/t5/Discussions/Merge-data-by-time-stamp/m-p/36259#M21315</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Unbenannt.PNG" style="width: 620px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/5301iF0C4C89032C3744B/image-size/large?v=v2&amp;amp;px=999" role="button" title="Unbenannt.PNG" alt="Unbenannt.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Feb 2017 21:41:09 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Merge-data-by-time-stamp/m-p/36259#M21315</guid>
      <dc:creator>martindemel</dc:creator>
      <dc:date>2017-02-22T21:41:09Z</dc:date>
    </item>
    <item>
      <title>Re: Merge data by time stamp</title>
      <link>https://community.jmp.com/t5/Discussions/Merge-data-by-time-stamp/m-p/36260#M21316</link>
      <description>&lt;P&gt;Great :)&lt;/img&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Feb 2017 21:42:04 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Merge-data-by-time-stamp/m-p/36260#M21316</guid>
      <dc:creator>martindemel</dc:creator>
      <dc:date>2017-02-22T21:42:04Z</dc:date>
    </item>
  </channel>
</rss>

