<?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: Delimit text and create new row in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Delimit-text-and-create-new-row/m-p/580367#M78743</link>
    <description>&lt;P&gt;I have a feeling I'm not understanding what you're needing, but:&lt;/P&gt;
&lt;P&gt;if the number you're adding to machine is the sequence of 1, 2, 3 repeated, would the modulo() function work for your needs? Something like the following?&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;"ABC_RC" || Char( Modulo( Row(), 3 ) + 1 )&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 12 Dec 2022 16:45:42 GMT</pubDate>
    <dc:creator>Jed_Campbell</dc:creator>
    <dc:date>2022-12-12T16:45:42Z</dc:date>
    <item>
      <title>Delimit text and create new row</title>
      <link>https://community.jmp.com/t5/Discussions/Delimit-text-and-create-new-row/m-p/580252#M78735</link>
      <description>&lt;P&gt;hey folks,&lt;/P&gt;&lt;P&gt;I am using a previous example from the forum.&lt;/P&gt;&lt;P&gt;My code works for the first part I am doing.&lt;/P&gt;&lt;P&gt;When I add the value into the new row I want to increment machine by 1.&amp;nbsp;&lt;/P&gt;&lt;P&gt;So below&amp;nbsp; would like ABC_RC1,RC2,RC3... not sure how to do this part.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jearls11_4-1670857979242.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/48191i19A2FB8B94962529/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jearls11_4-1670857979242.png" alt="jearls11_4-1670857979242.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;machine&lt;/TD&gt;&lt;TD&gt;operation&lt;/TD&gt;&lt;TD&gt;recipename&lt;/TD&gt;&lt;TD&gt;Data_Column&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;ABC_RC&lt;/TD&gt;&lt;TD&gt;123456&lt;/TD&gt;&lt;TD&gt;TEST&lt;/TD&gt;&lt;TD&gt;[0.941279597;0.941279597;0.947636808]&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&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;Names Default To Here( 1 );
dt = Data Table( "Untitled 166");
dtOut = New Table( "Final Output1",

New Column( "machine", character ),
New Column( "operation", numeric ),
New Column( "recipename", character ),
New Column( "Data_Column", character ),



New Column( "Data_1", numeric ),



);
For( i = 1, i &amp;lt;= N Rows( dt ), i++,
	If( i == 1,
		theRow = 0;
		theRow = N Rows( dtOut );
	);
	If( dt:Data_Column[i] != "X",
		dtOut &amp;lt;&amp;lt; Add Rows( 3 );
		For( k = 1, k &amp;lt;= 3, k++,
			theRow++;
			dtOut:machine[theRow] = dt:machine[i];
			dtOut:operation[theRow] = dt:operation[i];
			dtOut:recipename[theRow] = dt:recipename[i];
			dtOut:Data_Column[theRow] = dt:Data_Column[i];
			
			dtOut:Data_1[theRow] = Substr( Word( k, dt:Data_Column[i], ";" ), 2, 7 );
		
			
	
		);
	);
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 16:04:35 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Delimit-text-and-create-new-row/m-p/580252#M78735</guid>
      <dc:creator>jearls11</dc:creator>
      <dc:date>2023-06-09T16:04:35Z</dc:date>
    </item>
    <item>
      <title>Re: Delimit text and create new row</title>
      <link>https://community.jmp.com/t5/Discussions/Delimit-text-and-create-new-row/m-p/580257#M78736</link>
      <description>&lt;P&gt;Could I add a new column and do a 1++ and the then concatenate?&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2022 15:20:14 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Delimit-text-and-create-new-row/m-p/580257#M78736</guid>
      <dc:creator>jearls11</dc:creator>
      <dc:date>2022-12-12T15:20:14Z</dc:date>
    </item>
    <item>
      <title>Re: Delimit text and create new row</title>
      <link>https://community.jmp.com/t5/Discussions/Delimit-text-and-create-new-row/m-p/580304#M78741</link>
      <description>&lt;P&gt;Sorry, the concat wont work as it foes 1,2,3,4,5.... i need, 1,2,3,1,2,3.&lt;BR /&gt;Can I do this?&lt;BR /&gt;dtOut:RC[theRow] = Sequence( 1, 2, 1, 1 );&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;or just create a new column and do a sequence?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2022 16:24:30 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Delimit-text-and-create-new-row/m-p/580304#M78741</guid>
      <dc:creator>jearls11</dc:creator>
      <dc:date>2022-12-12T16:24:30Z</dc:date>
    </item>
    <item>
      <title>Re: Delimit text and create new row</title>
      <link>https://community.jmp.com/t5/Discussions/Delimit-text-and-create-new-row/m-p/580367#M78743</link>
      <description>&lt;P&gt;I have a feeling I'm not understanding what you're needing, but:&lt;/P&gt;
&lt;P&gt;if the number you're adding to machine is the sequence of 1, 2, 3 repeated, would the modulo() function work for your needs? Something like the following?&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;"ABC_RC" || Char( Modulo( Row(), 3 ) + 1 )&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 12 Dec 2022 16:45:42 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Delimit-text-and-create-new-row/m-p/580367#M78743</guid>
      <dc:creator>Jed_Campbell</dc:creator>
      <dc:date>2022-12-12T16:45:42Z</dc:date>
    </item>
  </channel>
</rss>

