<?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: text to columns but in a neat way in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/text-to-columns-but-in-a-neat-way/m-p/11415#M10944</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Karen,&lt;/P&gt;&lt;P&gt;Köszönöm Hegedus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even the solution of Hegedus is also ok, the help of Karen saved me a lot time hence the packets are coded in 67 different ways.&lt;/P&gt;&lt;P&gt;Many many thanks all!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Mar 2015 08:23:33 GMT</pubDate>
    <dc:creator>saitcopuroglu</dc:creator>
    <dc:date>2015-03-18T08:23:33Z</dc:date>
    <item>
      <title>text to columns but in a neat way</title>
      <link>https://community.jmp.com/t5/Discussions/text-to-columns-but-in-a-neat-way/m-p/11412#M10941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;I have a column of character data set which consist of codes of discounts we give our agencies. Also there are rows with empty data (no discount)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="8371_Screen Shot 2015-03-15 at 10.39.35.png" style="width: 109px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/1352iDDBA7015C5960664/image-size/medium?v=v2&amp;amp;px=400" role="button" title="8371_Screen Shot 2015-03-15 at 10.39.35.png" alt="8371_Screen Shot 2015-03-15 at 10.39.35.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I would like to get a result as below without generating any additional row:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="8372_Screen Shot 2015-03-15 at 10.46.04.png" style="width: 316px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/1353i7347B6D805806B82/image-size/medium?v=v2&amp;amp;px=400" role="button" title="8372_Screen Shot 2015-03-15 at 10.46.04.png" alt="8372_Screen Shot 2015-03-15 at 10.46.04.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2016 22:50:22 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/text-to-columns-but-in-a-neat-way/m-p/11412#M10941</guid>
      <dc:creator>saitcopuroglu</dc:creator>
      <dc:date>2016-10-18T22:50:22Z</dc:date>
    </item>
    <item>
      <title>Re: text to columns but in a neat way</title>
      <link>https://community.jmp.com/t5/Discussions/text-to-columns-but-in-a-neat-way/m-p/11413#M10942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One way to do this is to create the different discount column as in your preferred output table and then give each of them a formula that tests if the column "packets" contains that code such as:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="8377_Untitled.png" style="width: 1308px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/1356iC2563E07555923F8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="8377_Untitled.png" alt="8377_Untitled.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;or in JMP script&lt;/P&gt;&lt;P&gt;Contains( Packets, "CT" );&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will give a 1 if test (does the Packet row contain "CT") and a 0 if it does not.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2016 22:50:51 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/text-to-columns-but-in-a-neat-way/m-p/11413#M10942</guid>
      <dc:creator>Hegedus</dc:creator>
      <dc:date>2016-10-18T22:50:51Z</dc:date>
    </item>
    <item>
      <title>Re: text to columns but in a neat way</title>
      <link>https://community.jmp.com/t5/Discussions/text-to-columns-but-in-a-neat-way/m-p/11414#M10943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I was Julian I would make a cool video, however, this solution is easier than it appears so hang in there as I explain.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As is often the case, there is more than one way to solve your data cleaning.&amp;nbsp; The option suggested will work well if you do not have too many codes as you will have to manually set up each column.&amp;nbsp; However, if I were to use formulas in manually set up columns I would use the formula:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If( Contains( :Packet, "CT" ),&lt;/P&gt;&lt;P&gt;&amp;nbsp; "CT",&lt;/P&gt;&lt;P&gt;&amp;nbsp; Empty()&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This would give you the structure you are looking for.&amp;nbsp; If you have lots of codes then a&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;nother way would be to use the categorical platform (Analyze&amp;gt;Consumer Research&amp;gt;Categorical).&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will need an ID column (I just added a new column and used the "initialize data" option under column info to create a column of unique numbers.&amp;nbsp; Next use the categorical response analysis, select the "Multiple" tab, select your packet column and then choose "Multiple Delimited" and use your ID column as the "X Grouping Category".&amp;nbsp; (see below)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Missing image]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now your output (which is just an intermediate step) will look like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Missing image]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now under the main red triangle menu select Save Tables&amp;gt;Save Frequencies to get a table that looks like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Missing image]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finally, if you need to you could use the column recode to change 1's to the codes and the 0's to blanks.&amp;nbsp; Also, you could join this back to the original table using the ID to match on. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2016 22:50:56 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/text-to-columns-but-in-a-neat-way/m-p/11414#M10943</guid>
      <dc:creator>KarenC</dc:creator>
      <dc:date>2016-10-18T22:50:56Z</dc:date>
    </item>
    <item>
      <title>Re: text to columns but in a neat way</title>
      <link>https://community.jmp.com/t5/Discussions/text-to-columns-but-in-a-neat-way/m-p/11415#M10944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Karen,&lt;/P&gt;&lt;P&gt;Köszönöm Hegedus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even the solution of Hegedus is also ok, the help of Karen saved me a lot time hence the packets are coded in 67 different ways.&lt;/P&gt;&lt;P&gt;Many many thanks all!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Mar 2015 08:23:33 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/text-to-columns-but-in-a-neat-way/m-p/11415#M10944</guid>
      <dc:creator>saitcopuroglu</dc:creator>
      <dc:date>2015-03-18T08:23:33Z</dc:date>
    </item>
    <item>
      <title>Re: text to columns but in a neat way</title>
      <link>https://community.jmp.com/t5/Discussions/text-to-columns-but-in-a-neat-way/m-p/11416#M10945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;These are some good suggestions for solving this problem....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is a really nice solution in JMP 12 and it almost made me cry.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In JMP 12 this is a &lt;EM&gt;menu item&lt;/EM&gt; and it only takes about &lt;EM&gt;5 clicks&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cols/Utilities/Text to Columns, then add the delimiter, and check the "Indicator Columns" box. Click OK &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Apr 2015 13:35:44 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/text-to-columns-but-in-a-neat-way/m-p/11416#M10945</guid>
      <dc:creator>Byron_JMP</dc:creator>
      <dc:date>2015-04-03T13:35:44Z</dc:date>
    </item>
    <item>
      <title>Re: text to columns but in a neat way</title>
      <link>https://community.jmp.com/t5/Discussions/text-to-columns-but-in-a-neat-way/m-p/11417#M10946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Really nice! But the data table is being updated every hours, I can not automate it by scripting, or can I? I guess not&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Apr 2015 13:41:35 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/text-to-columns-but-in-a-neat-way/m-p/11417#M10946</guid>
      <dc:creator>saitcopuroglu</dc:creator>
      <dc:date>2015-04-03T13:41:35Z</dc:date>
    </item>
    <item>
      <title>Re: text to columns but in a neat way</title>
      <link>https://community.jmp.com/t5/Discussions/text-to-columns-but-in-a-neat-way/m-p/11418#M10947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;or maybe you can...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Straight from the scripting index:&lt;/P&gt;&lt;P&gt;Names Default To Here( 1 );&lt;/P&gt;&lt;P&gt;dt = Open( "$SAMPLE_DATA/Consumer Preferences.jmp" );&lt;/P&gt;&lt;P&gt;dt &amp;lt;&amp;lt; Text To Columns(&lt;/P&gt;&lt;P&gt;&amp;nbsp; delimiter( "," ),&lt;/P&gt;&lt;P&gt;&amp;nbsp; columns( :Brush Delimited ),&lt;/P&gt;&lt;P&gt;&amp;nbsp; makeindicatorcolumns(1)//ok, so this line wasn't in the scripting index, but it was an intuitive guess&lt;/P&gt;&lt;P&gt;);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--Note: This is a new function in JMP12&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Apr 2015 14:17:20 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/text-to-columns-but-in-a-neat-way/m-p/11418#M10947</guid>
      <dc:creator>Byron_JMP</dc:creator>
      <dc:date>2015-04-03T14:17:20Z</dc:date>
    </item>
  </channel>
</rss>

