<?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: Or how to implement this simple substitution with JSL? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Or-how-to-implement-this-simple-substitution-with-JSL/m-p/273447#M53189</link>
    <description>&lt;P&gt;You can create a column formula to perform the substitution:&amp;nbsp; &lt;STRONG&gt;Substitute(:name,"S","")&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;In code it would look something like this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Current Data Table();
dt = New Column( "New Name",
		Character,
		"Nominal",
		Formula( Substitute( :name, "S", "" ) )
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV id="tinyMceEditorDavid_Burnham_0" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV id="tinyMceEditorDavid_Burnham_1" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 18 Jun 2020 11:32:18 GMT</pubDate>
    <dc:creator>David_Burnham</dc:creator>
    <dc:date>2020-06-18T11:32:18Z</dc:date>
    <item>
      <title>Or how to implement this simple substitution with JSL?</title>
      <link>https://community.jmp.com/t5/Discussions/Or-how-to-implement-this-simple-substitution-with-JSL/m-p/273435#M53187</link>
      <description>&lt;P&gt;For example, remove the "S" from all names in the "name" column of "Big class.jMP ".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2020-06-18_18-44.png" style="width: 842px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/24689i7F1EA2C8EDCCD490/image-size/large?v=v2&amp;amp;px=999" role="button" title="2020-06-18_18-44.png" alt="2020-06-18_18-44.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Can do it directly by substitution?Can the new VERSION of JMP be implemented?&lt;BR /&gt;get looks like the "rename" column.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 23:29:34 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Or-how-to-implement-this-simple-substitution-with-JSL/m-p/273435#M53187</guid>
      <dc:creator>lwx228</dc:creator>
      <dc:date>2023-06-09T23:29:34Z</dc:date>
    </item>
    <item>
      <title>Re: Or how to implement this simple substitution with JSL?</title>
      <link>https://community.jmp.com/t5/Discussions/Or-how-to-implement-this-simple-substitution-with-JSL/m-p/273447#M53189</link>
      <description>&lt;P&gt;You can create a column formula to perform the substitution:&amp;nbsp; &lt;STRONG&gt;Substitute(:name,"S","")&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;In code it would look something like this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Current Data Table();
dt = New Column( "New Name",
		Character,
		"Nominal",
		Formula( Substitute( :name, "S", "" ) )
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV id="tinyMceEditorDavid_Burnham_0" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV id="tinyMceEditorDavid_Burnham_1" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jun 2020 11:32:18 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Or-how-to-implement-this-simple-substitution-with-JSL/m-p/273447#M53189</guid>
      <dc:creator>David_Burnham</dc:creator>
      <dc:date>2020-06-18T11:32:18Z</dc:date>
    </item>
    <item>
      <title>Re: Or how to implement this simple substitution with JSL?</title>
      <link>https://community.jmp.com/t5/Discussions/Or-how-to-implement-this-simple-substitution-with-JSL/m-p/273451#M53190</link>
      <description>Thank Dave!&lt;BR /&gt;&lt;BR /&gt;Formula( Substitute</description>
      <pubDate>Thu, 18 Jun 2020 11:39:54 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Or-how-to-implement-this-simple-substitution-with-JSL/m-p/273451#M53190</guid>
      <dc:creator>lwx228</dc:creator>
      <dc:date>2020-06-18T11:39:54Z</dc:date>
    </item>
    <item>
      <title>Re: Or how to implement this simple substitution with JSL?</title>
      <link>https://community.jmp.com/t5/Discussions/Or-how-to-implement-this-simple-substitution-with-JSL/m-p/275205#M53388</link>
      <description>&lt;P&gt;How do you use JSL to perform the replacement operation to achieve this manual effect?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Replace column 2, "5" with null in a perfectly matched fashion, and "15" or "25" in this column are unaffected.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2020-06-24_14-59.png" style="width: 897px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/24787iD7ADD2A5FAD9E23F/image-size/large?v=v2&amp;amp;px=999" role="button" title="2020-06-24_14-59.png" alt="2020-06-24_14-59.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jun 2020 07:05:08 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Or-how-to-implement-this-simple-substitution-with-JSL/m-p/275205#M53388</guid>
      <dc:creator>lala</dc:creator>
      <dc:date>2020-06-24T07:05:08Z</dc:date>
    </item>
    <item>
      <title>Re: Or how to implement this simple substitution with JSL?</title>
      <link>https://community.jmp.com/t5/Discussions/Or-how-to-implement-this-simple-substitution-with-JSL/m-p/275220#M53392</link>
      <description>&lt;P&gt;Numeric data should not pose a problem. See this example:&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 = New Table( "Substitution",
	New Column( "Old Data", Numeric, Continuous ),
	New Column( "New Data", Numeric, Continuous )
);

:Old Data &amp;lt;&amp;lt; Set Values( J( 50, 1, Random Integer( 3, 18 ) ) );

Wait( 2 );

For Each Row(
	:New Data = Substitute( :Old Data, 5, . );
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 24 Jun 2020 12:09:56 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Or-how-to-implement-this-simple-substitution-with-JSL/m-p/275220#M53392</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2020-06-24T12:09:56Z</dc:date>
    </item>
    <item>
      <title>Re: Or how to implement this simple substitution with JSL?</title>
      <link>https://community.jmp.com/t5/Discussions/Or-how-to-implement-this-simple-substitution-with-JSL/m-p/275224#M53393</link>
      <description>Good way, thank you!</description>
      <pubDate>Wed, 24 Jun 2020 12:18:54 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Or-how-to-implement-this-simple-substitution-with-JSL/m-p/275224#M53393</guid>
      <dc:creator>lala</dc:creator>
      <dc:date>2020-06-24T12:18:54Z</dc:date>
    </item>
  </channel>
</rss>

