<?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 Removing values from a column in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Removing-values-from-a-column/m-p/29573#M19516</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to remove values from a column. &amp;nbsp;Normally, I would use a range check column property to do this, but with this particular column, it is also dependendent on another column's value. &amp;nbsp;Is there an easy way to do this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried the code below, but unfortunately it makes the entire column blank except for the first row. &amp;nbsp;I thought this&amp;nbsp;&lt;EM&gt;might&lt;/EM&gt; work because the "." represents missing values. &amp;nbsp;The data and modeling types are numeric and continuous.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For(i=1, i&amp;lt;=NRows(dt), i++,&lt;BR /&gt;&lt;BR /&gt;If(dt:Col 1[i] &amp;lt; someValue, If(dt:Col 2[i]==1, &amp;nbsp;,dt:Col 1[i] = "."),dt:Col 1[i] = ".");&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;);&lt;/P&gt;</description>
    <pubDate>Fri, 25 Nov 2016 19:00:24 GMT</pubDate>
    <dc:creator>natalie_</dc:creator>
    <dc:date>2016-11-25T19:00:24Z</dc:date>
    <item>
      <title>Removing values from a column</title>
      <link>https://community.jmp.com/t5/Discussions/Removing-values-from-a-column/m-p/29573#M19516</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to remove values from a column. &amp;nbsp;Normally, I would use a range check column property to do this, but with this particular column, it is also dependendent on another column's value. &amp;nbsp;Is there an easy way to do this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried the code below, but unfortunately it makes the entire column blank except for the first row. &amp;nbsp;I thought this&amp;nbsp;&lt;EM&gt;might&lt;/EM&gt; work because the "." represents missing values. &amp;nbsp;The data and modeling types are numeric and continuous.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For(i=1, i&amp;lt;=NRows(dt), i++,&lt;BR /&gt;&lt;BR /&gt;If(dt:Col 1[i] &amp;lt; someValue, If(dt:Col 2[i]==1, &amp;nbsp;,dt:Col 1[i] = "."),dt:Col 1[i] = ".");&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;);&lt;/P&gt;</description>
      <pubDate>Fri, 25 Nov 2016 19:00:24 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Removing-values-from-a-column/m-p/29573#M19516</guid>
      <dc:creator>natalie_</dc:creator>
      <dc:date>2016-11-25T19:00:24Z</dc:date>
    </item>
    <item>
      <title>Re: Removing values from a column</title>
      <link>https://community.jmp.com/t5/Discussions/Removing-values-from-a-column/m-p/29575#M19517</link>
      <description>&lt;P&gt;I found a way to make it work, but I don't know how efficient it is. &amp;nbsp;I saved the values from the columns to lists, deleted the one column, made a new column, and added the passed values to the new column. &amp;nbsp;If it wasn't a passed observation, it wasn't add and the entry in that cell is simply a "."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;idList = List();&lt;BR /&gt;idList = As List(:Col X&amp;lt;&amp;lt; get values);&lt;BR /&gt;idLogic = List();&lt;BR /&gt;idLogic = As List(:Col Y&amp;lt;&amp;lt;get values);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;dt &amp;lt;&amp;lt; New Column("Col X", Numeric, Continuous);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;For(i=1, i&amp;lt;=N Rows(dt), i++,&lt;BR /&gt;&lt;BR /&gt;If(idList[i] &amp;lt; someValue, If(idLogic[i]==1,dt:Col X[i] = idList[i],),);&lt;BR /&gt;&lt;BR /&gt;);&lt;/P&gt;</description>
      <pubDate>Fri, 25 Nov 2016 20:20:20 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Removing-values-from-a-column/m-p/29575#M19517</guid>
      <dc:creator>natalie_</dc:creator>
      <dc:date>2016-11-25T20:20:20Z</dc:date>
    </item>
    <item>
      <title>Re: Removing values from a column</title>
      <link>https://community.jmp.com/t5/Discussions/Removing-values-from-a-column/m-p/29576#M19518</link>
      <description>&lt;P&gt;Natalie,&lt;/P&gt;
&lt;P&gt;I believe that from an efficiency standpoint, this will do what you want&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt &amp;lt;&amp;lt; select rows where( Not( dt:Col 1 &amp;lt; someValue &amp;amp; dt:Col 2 == 1 ) );
dt:Col 1[dt &amp;lt;&amp;lt; get selected rows] = "";&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 25 Nov 2016 21:13:07 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Removing-values-from-a-column/m-p/29576#M19518</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2016-11-25T21:13:07Z</dc:date>
    </item>
    <item>
      <title>Re: Removing values from a column</title>
      <link>https://community.jmp.com/t5/Discussions/Removing-values-from-a-column/m-p/29577#M19519</link>
      <description>&lt;P&gt;That's a good idea, too! &amp;nbsp;Thank you for your help.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Nov 2016 21:16:36 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Removing-values-from-a-column/m-p/29577#M19519</guid>
      <dc:creator>natalie_</dc:creator>
      <dc:date>2016-11-25T21:16:36Z</dc:date>
    </item>
  </channel>
</rss>

