<?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 data cleanup, merge data from 3 columns into one column in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/data-cleanup-merge-data-from-3-columns-into-one-column/m-p/424819#M67403</link>
    <description>&lt;P&gt;HI Newbie here, I need some help to merge the data from 3 columns into one column, the data were collected in different time and by different person, and in 3 columns, so there are some missing data, some matched, like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A&amp;nbsp; B&amp;nbsp; C&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;0&amp;nbsp; &amp;nbsp; &amp;nbsp; 0&lt;/P&gt;&lt;P&gt;1&amp;nbsp; &amp;nbsp; &amp;nbsp; 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I merge the data in A, B, C columns into one column in JMP?&lt;/P&gt;&lt;P&gt;Thank you so much for helping!&lt;/P&gt;</description>
    <pubDate>Sat, 10 Jun 2023 23:38:09 GMT</pubDate>
    <dc:creator>TonyS</dc:creator>
    <dc:date>2023-06-10T23:38:09Z</dc:date>
    <item>
      <title>data cleanup, merge data from 3 columns into one column</title>
      <link>https://community.jmp.com/t5/Discussions/data-cleanup-merge-data-from-3-columns-into-one-column/m-p/424819#M67403</link>
      <description>&lt;P&gt;HI Newbie here, I need some help to merge the data from 3 columns into one column, the data were collected in different time and by different person, and in 3 columns, so there are some missing data, some matched, like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A&amp;nbsp; B&amp;nbsp; C&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;0&amp;nbsp; &amp;nbsp; &amp;nbsp; 0&lt;/P&gt;&lt;P&gt;1&amp;nbsp; &amp;nbsp; &amp;nbsp; 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I merge the data in A, B, C columns into one column in JMP?&lt;/P&gt;&lt;P&gt;Thank you so much for helping!&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2023 23:38:09 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/data-cleanup-merge-data-from-3-columns-into-one-column/m-p/424819#M67403</guid>
      <dc:creator>TonyS</dc:creator>
      <dc:date>2023-06-10T23:38:09Z</dc:date>
    </item>
    <item>
      <title>Re: data cleanup, merge data from 3 columns into one column</title>
      <link>https://community.jmp.com/t5/Discussions/data-cleanup-merge-data-from-3-columns-into-one-column/m-p/424828#M67405</link>
      <description>&lt;P&gt;How would you like to combine them? Sum of them? Concatenate them together? For example to sum them you could create new formula column with following formula:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Sum(:A, :B, :C)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;To concatenate (character data), select all columns, right click on one of them and:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_1-1633708945598.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/36427i9C7F8585714BB5A3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_1-1633708945598.png" alt="jthi_1-1633708945598.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Or select all of them, Cols / Utilities / Combine Columns:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_2-1633708986081.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/36428iE3236DEC91A9855E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_2-1633708986081.png" alt="jthi_2-1633708986081.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>Fri, 08 Oct 2021 16:03:41 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/data-cleanup-merge-data-from-3-columns-into-one-column/m-p/424828#M67405</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2021-10-08T16:03:41Z</dc:date>
    </item>
    <item>
      <title>Re: data cleanup, merge data from 3 columns into one column</title>
      <link>https://community.jmp.com/t5/Discussions/data-cleanup-merge-data-from-3-columns-into-one-column/m-p/424830#M67406</link>
      <description>&lt;P&gt;Are the columns numeric or character?&lt;/P&gt;
&lt;P&gt;Given the above example, what is your expectation of what the final column will contain?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1&lt;/P&gt;
&lt;P&gt;0&lt;/P&gt;
&lt;P&gt;1&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;or&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;11&lt;/P&gt;
&lt;P&gt;0 0&lt;/P&gt;
&lt;P&gt;1 1&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;or&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;11&lt;/P&gt;
&lt;P&gt;00&lt;/P&gt;
&lt;P&gt;11&lt;/P&gt;</description>
      <pubDate>Fri, 08 Oct 2021 16:02:25 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/data-cleanup-merge-data-from-3-columns-into-one-column/m-p/424830#M67406</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2021-10-08T16:02:25Z</dc:date>
    </item>
    <item>
      <title>Re: data cleanup, merge data from 3 columns into one column</title>
      <link>https://community.jmp.com/t5/Discussions/data-cleanup-merge-data-from-3-columns-into-one-column/m-p/424840#M67407</link>
      <description>&lt;P&gt;Thanks txnelson and jthi, the columns are character, I need them to be either 1 or 0, the data in the 3 columns are either match or missing, so I just need to aggregate them together.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Much appreciated!!&lt;/P&gt;</description>
      <pubDate>Fri, 08 Oct 2021 16:10:31 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/data-cleanup-merge-data-from-3-columns-into-one-column/m-p/424840#M67407</guid>
      <dc:creator>TonyS</dc:creator>
      <dc:date>2021-10-08T16:10:31Z</dc:date>
    </item>
    <item>
      <title>Re: data cleanup, merge data from 3 columns into one column</title>
      <link>https://community.jmp.com/t5/Discussions/data-cleanup-merge-data-from-3-columns-into-one-column/m-p/424847#M67408</link>
      <description>&lt;P&gt;The formula for a new column that contains the single matched value would be&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;substring( trim(:A || :B || :C), 1, 1 )&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Concatenate the 3 columns together, and then take the first character&lt;/P&gt;</description>
      <pubDate>Fri, 08 Oct 2021 16:18:28 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/data-cleanup-merge-data-from-3-columns-into-one-column/m-p/424847#M67408</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2021-10-08T16:18:28Z</dc:date>
    </item>
    <item>
      <title>Re: data cleanup, merge data from 3 columns into one column</title>
      <link>https://community.jmp.com/t5/Discussions/data-cleanup-merge-data-from-3-columns-into-one-column/m-p/424849#M67409</link>
      <description>&lt;P&gt;If you are sure you won't have any empty rows (or if you have empty row it will be coded as 0):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;If(
	Contains(:A || :B || :C, "1"), "1",
	"0"
)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1633710489130.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/36429iE783D007EFF91EEE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1633710489130.png" alt="jthi_0-1633710489130.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also with JMP &lt;EM&gt;Missing &lt;/EM&gt;is not same as "0". With the characters the &lt;EM&gt;Missing&lt;/EM&gt; value would be empty string ("") and with numeric values it would be period (.) and sometimes this has to be taken into account.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Show(Ismissing(""));
Show(IsMissing(.));&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Oct 2021 16:29:12 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/data-cleanup-merge-data-from-3-columns-into-one-column/m-p/424849#M67409</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2021-10-08T16:29:12Z</dc:date>
    </item>
    <item>
      <title>Re: data cleanup, merge data from 3 columns into one column</title>
      <link>https://community.jmp.com/t5/Discussions/data-cleanup-merge-data-from-3-columns-into-one-column/m-p/424850#M67410</link>
      <description>&lt;P&gt;Thanks!!!&lt;/P&gt;</description>
      <pubDate>Fri, 08 Oct 2021 16:32:13 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/data-cleanup-merge-data-from-3-columns-into-one-column/m-p/424850#M67410</guid>
      <dc:creator>TonyS</dc:creator>
      <dc:date>2021-10-08T16:32:13Z</dc:date>
    </item>
  </channel>
</rss>

