<?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 Split whole string into 2 new column in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Split-whole-string-into-2-new-column/m-p/673777#M86128</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;table&amp;lt;&amp;lt; New Column("d0", Character, Nominal, Formula(Word(Column(table, "Data"), "_", 1, 3)));
table&amp;lt;&amp;lt; New Column("d1", Character, Nominal, Formula(Word(Column(table, "Data"), "_", 4, 6)));
&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;string= 1_1_1_1_1_1&lt;BR /&gt;wanted to split this string into 2 column with data 1_1_1 for d0 and 1_1_1 for d1. Somehow the script above not working&lt;/P&gt;</description>
    <pubDate>Sun, 03 Sep 2023 15:00:34 GMT</pubDate>
    <dc:creator>weilyne</dc:creator>
    <dc:date>2023-09-03T15:00:34Z</dc:date>
    <item>
      <title>Split whole string into 2 new column</title>
      <link>https://community.jmp.com/t5/Discussions/Split-whole-string-into-2-new-column/m-p/673777#M86128</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;table&amp;lt;&amp;lt; New Column("d0", Character, Nominal, Formula(Word(Column(table, "Data"), "_", 1, 3)));
table&amp;lt;&amp;lt; New Column("d1", Character, Nominal, Formula(Word(Column(table, "Data"), "_", 4, 6)));
&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;string= 1_1_1_1_1_1&lt;BR /&gt;wanted to split this string into 2 column with data 1_1_1 for d0 and 1_1_1 for d1. Somehow the script above not working&lt;/P&gt;</description>
      <pubDate>Sun, 03 Sep 2023 15:00:34 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Split-whole-string-into-2-new-column/m-p/673777#M86128</guid>
      <dc:creator>weilyne</dc:creator>
      <dc:date>2023-09-03T15:00:34Z</dc:date>
    </item>
    <item>
      <title>Re: Split whole string into 2 new column</title>
      <link>https://community.jmp.com/t5/Discussions/Split-whole-string-into-2-new-column/m-p/673899#M86136</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The Word function allows for ranges in the first term. Hence, you can extract the first set of 3 meaningful characters/digits and the last 3 with the formulas below.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Word( [1 3], :Data, "_" );

Word( [4 -1], :Data, "_" );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Note: The Last Word is represented by the "-1" position.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let me know if it works for your needs.&lt;/P&gt;
&lt;P&gt;Best,&lt;/P&gt;
&lt;P&gt;TS&lt;/P&gt;</description>
      <pubDate>Sun, 03 Sep 2023 19:52:06 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Split-whole-string-into-2-new-column/m-p/673899#M86136</guid>
      <dc:creator>Thierry_S</dc:creator>
      <dc:date>2023-09-03T19:52:06Z</dc:date>
    </item>
  </channel>
</rss>

