<?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 Concatenate a string to an integer. in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Concatenate-a-string-to-an-integer/m-p/723898#M90592</link>
    <description>&lt;P&gt;Hi.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to create new columns with the same name, but different extension.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, I'm trying to create column 1 &amp;amp;&amp;nbsp;column 2 &amp;amp;column 3... etc.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is what I have:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;lista = list(1 , 2, 3 , 4);&amp;nbsp;



for(i1=1, i1&amp;lt;N Items ( lista)+1, i1++,
&amp;nbsp;dt_limit &amp;lt;&amp;lt; new column (&amp;nbsp; &amp;nbsp; insert( "condition", char ( lista(i1) )&amp;nbsp; )&amp;nbsp; &amp;nbsp; );

);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;it doesn't seem to work, however. It either returns an error or return something like this: " condition (1, 2, 3, 4) " or: "conditionlista"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any guidance is appreciated.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 12 Feb 2024 23:43:00 GMT</pubDate>
    <dc:creator>RA899</dc:creator>
    <dc:date>2024-02-12T23:43:00Z</dc:date>
    <item>
      <title>Concatenate a string to an integer.</title>
      <link>https://community.jmp.com/t5/Discussions/Concatenate-a-string-to-an-integer/m-p/723898#M90592</link>
      <description>&lt;P&gt;Hi.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to create new columns with the same name, but different extension.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, I'm trying to create column 1 &amp;amp;&amp;nbsp;column 2 &amp;amp;column 3... etc.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is what I have:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;lista = list(1 , 2, 3 , 4);&amp;nbsp;



for(i1=1, i1&amp;lt;N Items ( lista)+1, i1++,
&amp;nbsp;dt_limit &amp;lt;&amp;lt; new column (&amp;nbsp; &amp;nbsp; insert( "condition", char ( lista(i1) )&amp;nbsp; )&amp;nbsp; &amp;nbsp; );

);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;it doesn't seem to work, however. It either returns an error or return something like this: " condition (1, 2, 3, 4) " or: "conditionlista"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any guidance is appreciated.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Feb 2024 23:43:00 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Concatenate-a-string-to-an-integer/m-p/723898#M90592</guid>
      <dc:creator>RA899</dc:creator>
      <dc:date>2024-02-12T23:43:00Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenate a string to an integer.</title>
      <link>https://community.jmp.com/t5/Discussions/Concatenate-a-string-to-an-integer/m-p/723918#M90594</link>
      <description>&lt;P&gt;I realized I was using () instead of [] for calling the list index. It looks like its working now.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2024 00:27:51 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Concatenate-a-string-to-an-integer/m-p/723918#M90594</guid>
      <dc:creator>RA899</dc:creator>
      <dc:date>2024-02-13T00:27:51Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenate a string to an integer.</title>
      <link>https://community.jmp.com/t5/Discussions/Concatenate-a-string-to-an-integer/m-p/723926#M90596</link>
      <description>&lt;P&gt;Here are a couple of ways that I typically use&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );

lista = List( 1, 2, 3, 4 ); 

For( i1 = 1, i1 &amp;lt; N Items( lista ) + 1, i1++,
	dt_limit &amp;lt;&amp;lt; New Column( "condition" || " " || Char( lista( i1 ) ) );
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;or&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );

lista = List( 1, 2, 3, 4 ); 

For each( {member}, lista,
	dt_limit &amp;lt;&amp;lt; New Column( "condition" || " " || Char( member ) ) );
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 13 Feb 2024 02:00:50 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Concatenate-a-string-to-an-integer/m-p/723926#M90596</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2024-02-13T02:00:50Z</dc:date>
    </item>
  </channel>
</rss>

