<?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 joining tables while averaging across columns with the same name in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/joining-tables-while-averaging-across-columns-with-the-same-name/m-p/395118#M64569</link>
    <description>&lt;P&gt;I have what would appear to be an easy-to-fix problem, but for the life of me, I can't figure out how to do it easily. I have three separate tables in which the rows are individual proteins. The "accession" refers to their names. Some proteins are found in multiple tables, whereas some are only found in one of the three. I know how to join the tables by matching the protein names (accession=accession), but when I do this it provides the data from only one of the tables. I would prefer to average (or sum) the values instead. For instance, if protein A is in tables 1 and 2, with values of 3 and 4, respectively, I would like the new, joined table to have protein A with a value of 3.4. I tried concatenate and JMP Query Builder with no luck, but I feel there must be an easy solution to this, right? The raw data I actually want to analyze are in the "abundances grouped" columns (7 data columns I'd like to average across tables). I bet a savvy JMP user could do what I'm trying to do with zero scripting in 5-10 seconds!&lt;/P&gt;</description>
    <pubDate>Sat, 10 Jun 2023 23:32:17 GMT</pubDate>
    <dc:creator>abmayfield</dc:creator>
    <dc:date>2023-06-10T23:32:17Z</dc:date>
    <item>
      <title>joining tables while averaging across columns with the same name</title>
      <link>https://community.jmp.com/t5/Discussions/joining-tables-while-averaging-across-columns-with-the-same-name/m-p/395118#M64569</link>
      <description>&lt;P&gt;I have what would appear to be an easy-to-fix problem, but for the life of me, I can't figure out how to do it easily. I have three separate tables in which the rows are individual proteins. The "accession" refers to their names. Some proteins are found in multiple tables, whereas some are only found in one of the three. I know how to join the tables by matching the protein names (accession=accession), but when I do this it provides the data from only one of the tables. I would prefer to average (or sum) the values instead. For instance, if protein A is in tables 1 and 2, with values of 3 and 4, respectively, I would like the new, joined table to have protein A with a value of 3.4. I tried concatenate and JMP Query Builder with no luck, but I feel there must be an easy solution to this, right? The raw data I actually want to analyze are in the "abundances grouped" columns (7 data columns I'd like to average across tables). I bet a savvy JMP user could do what I'm trying to do with zero scripting in 5-10 seconds!&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2023 23:32:17 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/joining-tables-while-averaging-across-columns-with-the-same-name/m-p/395118#M64569</guid>
      <dc:creator>abmayfield</dc:creator>
      <dc:date>2023-06-10T23:32:17Z</dc:date>
    </item>
    <item>
      <title>Re: joining tables while averaging across columns with the same name</title>
      <link>https://community.jmp.com/t5/Discussions/joining-tables-while-averaging-across-columns-with-the-same-name/m-p/395140#M64571</link>
      <description>&lt;P&gt;Depending what you want to do with the data and how you will analyze it, maybe you could approach this first by &lt;STRONG&gt;concatenating&lt;/STRONG&gt; (not joining) the datatables together, then using Summary table to calculate Sum/Average values of the columns of interest.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Edit:&lt;/P&gt;&lt;P&gt;Added bold to important part. This solution could work if you are only interested in specific columns in the data: abundances grouped and accession. You would end up with something like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1624382348972.png" style="width: 857px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/33712i93ACACC76FC3DBF1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1624382348972.png" alt="jthi_0-1624382348972.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Also if one of the tables is "master" from which you would take other information from, you could join back to that&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jun 2021 17:19:58 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/joining-tables-while-averaging-across-columns-with-the-same-name/m-p/395140#M64571</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2021-06-22T17:19:58Z</dc:date>
    </item>
    <item>
      <title>Re: joining tables while averaging across columns with the same name</title>
      <link>https://community.jmp.com/t5/Discussions/joining-tables-while-averaging-across-columns-with-the-same-name/m-p/395158#M64577</link>
      <description>&lt;P&gt;I agree with&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/14366"&gt;@jthi&lt;/a&gt;&amp;nbsp;that joining the tables first and then summarizing may be a prudent course of action. When you are joining the tables, make sure you check the boxes to check the box to include non-matches&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 288px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/33711i7147F3ECCBF491A3/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;and not have the "Drop multiples" checked. This should give you all of the observations from both tables.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jun 2021 17:09:32 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/joining-tables-while-averaging-across-columns-with-the-same-name/m-p/395158#M64577</guid>
      <dc:creator>Dan_Obermiller</dc:creator>
      <dc:date>2021-06-22T17:09:32Z</dc:date>
    </item>
  </channel>
</rss>

