<?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 How to replace selected values in a column with JSL in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-replace-selected-values-in-a-column-with-JSL/m-p/347547#M59833</link>
    <description>&lt;P&gt;Hi everyone,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm looking to replace alternate values in a column in using scripting. I've managed to select the values in the table but I'm struggling to find a way to replace them in just 1 column only.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is my code so far:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here (1);&lt;BR /&gt;dt &amp;lt;&amp;lt; new column ("selection", formula (sequence (1,2,1 )));

dt:selection &amp;lt;&amp;lt; delete formula;
dt &amp;lt;&amp;lt; select where(:1 &amp;amp; :selection !=1);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the table it creates:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ASullivan_2-1610443139854.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/29366i9FA435C6DEFBEB39/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ASullivan_2-1610443139854.png" alt="ASullivan_2-1610443139854.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I want to replace the values highlighted in the first column with 0. Any advice on how to accomplish this would be appreciated. Thanks!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 09 Jun 2023 22:02:56 GMT</pubDate>
    <dc:creator>ASullivan</dc:creator>
    <dc:date>2023-06-09T22:02:56Z</dc:date>
    <item>
      <title>How to replace selected values in a column with JSL</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-replace-selected-values-in-a-column-with-JSL/m-p/347547#M59833</link>
      <description>&lt;P&gt;Hi everyone,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm looking to replace alternate values in a column in using scripting. I've managed to select the values in the table but I'm struggling to find a way to replace them in just 1 column only.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is my code so far:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here (1);&lt;BR /&gt;dt &amp;lt;&amp;lt; new column ("selection", formula (sequence (1,2,1 )));

dt:selection &amp;lt;&amp;lt; delete formula;
dt &amp;lt;&amp;lt; select where(:1 &amp;amp; :selection !=1);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the table it creates:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ASullivan_2-1610443139854.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/29366i9FA435C6DEFBEB39/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ASullivan_2-1610443139854.png" alt="ASullivan_2-1610443139854.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I want to replace the values highlighted in the first column with 0. Any advice on how to accomplish this would be appreciated. Thanks!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 22:02:56 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-replace-selected-values-in-a-column-with-JSL/m-p/347547#M59833</guid>
      <dc:creator>ASullivan</dc:creator>
      <dc:date>2023-06-09T22:02:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace selected values in a column with JSL</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-replace-selected-values-in-a-column-with-JSL/m-p/347566#M59834</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;:Name("1")[ dt &amp;lt;&amp;lt; get selected rows ] = 0;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 12 Jan 2021 09:40:54 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-replace-selected-values-in-a-column-with-JSL/m-p/347566#M59834</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2021-01-12T09:40:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace selected values in a column with JSL</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-replace-selected-values-in-a-column-with-JSL/m-p/347578#M59840</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2687"&gt;@txnelson&lt;/a&gt;!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also wondering if its possible to then combine the 2 columns into a new column and excluding the 0 values?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jan 2021 10:51:47 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-replace-selected-values-in-a-column-with-JSL/m-p/347578#M59840</guid>
      <dc:creator>ASullivan</dc:creator>
      <dc:date>2021-01-12T10:51:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace selected values in a column with JSL</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-replace-selected-values-in-a-column-with-JSL/m-p/347579#M59841</link>
      <description>define "combine the 2 columns"&lt;BR /&gt;Add them together?</description>
      <pubDate>Tue, 12 Jan 2021 11:11:22 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-replace-selected-values-in-a-column-with-JSL/m-p/347579#M59841</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2021-01-12T11:11:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace selected values in a column with JSL</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-replace-selected-values-in-a-column-with-JSL/m-p/347586#M59843</link>
      <description>&lt;P&gt;By combine I mean have all the data in 1 column and disregard the 0 values, to end up with a table like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ASullivan_0-1610452085438.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/29368iC839252B8F826DEF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ASullivan_0-1610452085438.png" alt="ASullivan_0-1610452085438.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jan 2021 11:51:15 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-replace-selected-values-in-a-column-with-JSL/m-p/347586#M59843</guid>
      <dc:creator>ASullivan</dc:creator>
      <dc:date>2021-01-12T11:51:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace selected values in a column with JSL</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-replace-selected-values-in-a-column-with-JSL/m-p/347654#M59852</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt &amp;lt;&amp;lt; new column("Final Data", formula(:Area remaining water +
:area remaining exo));&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 12 Jan 2021 14:10:10 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-replace-selected-values-in-a-column-with-JSL/m-p/347654#M59852</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2021-01-12T14:10:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace selected values in a column with JSL</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-replace-selected-values-in-a-column-with-JSL/m-p/347660#M59855</link>
      <description>Thank you so much! Really helpful!</description>
      <pubDate>Tue, 12 Jan 2021 14:57:33 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-replace-selected-values-in-a-column-with-JSL/m-p/347660#M59855</guid>
      <dc:creator>ASullivan</dc:creator>
      <dc:date>2021-01-12T14:57:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace selected values in a column with JSL</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-replace-selected-values-in-a-column-with-JSL/m-p/347710#M59862</link>
      <description>You need to do some reading.  The Discovering JMP and the Using JMP documents.  They are found in the JMP Documentation Library under the Help pull down menu.</description>
      <pubDate>Tue, 12 Jan 2021 16:13:11 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-replace-selected-values-in-a-column-with-JSL/m-p/347710#M59862</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2021-01-12T16:13:11Z</dc:date>
    </item>
  </channel>
</rss>

