<?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: How do I remove a column formula but retain the values (with scripting) in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-do-I-remove-a-column-formula-but-retain-the-values-without/m-p/52747#M29869</link>
    <description>&lt;P&gt;Here is an example of how to delete a column that is being referenced in the formula of another column.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA\big class.jmp" );
dt &amp;lt;&amp;lt; New Column( "LogHeight", formula( Log( :Height ) ) );

// Delete the formula in the column LogHeight
Column( "LogHeight" ) &amp;lt;&amp;lt; delete formula;
dt &amp;lt;&amp;lt; delete columns( "Height" );&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 07 Mar 2018 18:29:48 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2018-03-07T18:29:48Z</dc:date>
    <item>
      <title>How do I remove a column formula but retain the values (without scripting)</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-I-remove-a-column-formula-but-retain-the-values-without/m-p/10908#M10516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, How do I remove a column formula but retain the values (without scripting)? I remember seeing an answer to this several months ago, maybe at the JMP summit, but I've forgotten and can't seem to figure it out. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Feb 2015 15:36:41 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-I-remove-a-column-formula-but-retain-the-values-without/m-p/10908#M10516</guid>
      <dc:creator>mikedriscoll</dc:creator>
      <dc:date>2015-02-11T15:36:41Z</dc:date>
    </item>
    <item>
      <title>Re: How do I remove a column formula but retain the values (without scripting)</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-I-remove-a-column-formula-but-retain-the-values-without/m-p/10909#M10517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just remove the Formula column property. Values will be retained (as I remember it...).&lt;/P&gt;&lt;P&gt;Right-click on the column header and pick Column Info. There should be a list of properties. Select Formula and click the remove button.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Feb 2015 17:34:40 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-I-remove-a-column-formula-but-retain-the-values-without/m-p/10909#M10517</guid>
      <dc:creator>ms</dc:creator>
      <dc:date>2015-02-11T17:34:40Z</dc:date>
    </item>
    <item>
      <title>Re: How do I remove a column formula but retain the values (without scripting)</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-I-remove-a-column-formula-but-retain-the-values-without/m-p/10910#M10518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks. That worked.&amp;nbsp; I knew it was something simple, but couldn't remember it. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Feb 2015 18:09:05 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-I-remove-a-column-formula-but-retain-the-values-without/m-p/10910#M10518</guid>
      <dc:creator>mikedriscoll</dc:creator>
      <dc:date>2015-02-11T18:09:05Z</dc:date>
    </item>
    <item>
      <title>Re: How do I remove a column formula but retain the values (without scripting)</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-I-remove-a-column-formula-but-retain-the-values-without/m-p/52648#M29810</link>
      <description>&lt;P&gt;Can you answer this same question except using scripting?&amp;nbsp; I need to use a formula on a column, get a value, but not store the formula.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Mar 2018 16:25:06 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-I-remove-a-column-formula-but-retain-the-values-without/m-p/52648#M29810</guid>
      <dc:creator>DonHil</dc:creator>
      <dc:date>2018-03-06T16:25:06Z</dc:date>
    </item>
    <item>
      <title>Re: How do I remove a column formula but retain the values (without scripting)</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-I-remove-a-column-formula-but-retain-the-values-without/m-p/52651#M29811</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;col &amp;lt;&amp;lt; delete formula;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Documentation for all of these kind of items is available at&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Help==&amp;gt;Scripting Index&lt;/P&gt;</description>
      <pubDate>Tue, 06 Mar 2018 17:24:38 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-I-remove-a-column-formula-but-retain-the-values-without/m-p/52651#M29811</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2018-03-06T17:24:38Z</dc:date>
    </item>
    <item>
      <title>Re: How do I remove a column formula but retain the values (without scripting)</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-I-remove-a-column-formula-but-retain-the-values-without/m-p/52652#M29812</link>
      <description>&lt;P&gt;Or you could go without using a formula at all such as this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt&amp;lt;&amp;lt;New Column("Y",
&amp;lt;&amp;lt;Set Each Value(10+3*:x)
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Of course that does depend on how complicated your formula is.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Mar 2018 18:41:57 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-I-remove-a-column-formula-but-retain-the-values-without/m-p/52652#M29812</guid>
      <dc:creator>Dan_Obermiller</dc:creator>
      <dc:date>2018-03-07T18:41:57Z</dc:date>
    </item>
    <item>
      <title>Re: How do I remove a column formula but retain the values (without scripting)</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-I-remove-a-column-formula-but-retain-the-values-without/m-p/52715#M29847</link>
      <description>This works:&lt;BR /&gt;&lt;BR /&gt;dt&amp;lt;&amp;lt;);&lt;BR /&gt;&lt;BR /&gt;Now: Does anyone know how to replace the "dots" in the column with "0's" without using a formula?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 07 Mar 2018 11:35:29 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-I-remove-a-column-formula-but-retain-the-values-without/m-p/52715#M29847</guid>
      <dc:creator>DonHil</dc:creator>
      <dc:date>2018-03-07T11:35:29Z</dc:date>
    </item>
    <item>
      <title>Re: How do I remove a column formula but retain the values (without scripting)</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-I-remove-a-column-formula-but-retain-the-values-without/m-p/52716#M29848</link>
      <description>&lt;P&gt;I assume that when you are referring to "dots" that you are referencing the Missing Value character.&amp;nbsp; Interactively, the easiest way to replace all of the Missing Values is to paste a "0" (zero) into all of the cells.&amp;nbsp; The following steps will do that:&lt;/P&gt;
&lt;P&gt;1. Go to one of the cells that has a missing value, and select the cell by clicking on it.&lt;/P&gt;
&lt;P&gt;2. Enter into the cell a zero.&lt;/P&gt;
&lt;P&gt;3. Copy the zero character into the paste buffer by selecting the cell and the right clicking and selecting "copy"&lt;/P&gt;
&lt;P&gt;4. Go to a new cell for the same column that has a Missing Value and click on the cell.&lt;/P&gt;
&lt;P&gt;5. Right click on the cell and select "Select Matching Cells"&lt;/P&gt;
&lt;P&gt;6. Right click once again on the same cell, and select "Paste"&lt;/P&gt;
&lt;P&gt;A zero "0" will then be pasted into all cells for that column that were Missing Values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or, you can use Recode&lt;/P&gt;
&lt;P&gt;1. Click on the column header to select the column&lt;/P&gt;
&lt;P&gt;2. Go to the pull down menu (or one of the column based red triangles) and select&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Cols==&amp;gt;Recode&lt;/P&gt;
&lt;P&gt;3. Change the Missing Value displayed to a zero&lt;/P&gt;
&lt;P&gt;4. Click on "Done"&lt;/P&gt;
&lt;P&gt;5. Select "In Place"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To do the same action using JSL, the following script will work:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Current Data Table();
columnVector = dt &amp;lt;&amp;lt; get rows where( Is Missing( dt:your column name ) == 1 );
dt:your column name[columnVector] = 0;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Mar 2018 12:29:18 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-I-remove-a-column-formula-but-retain-the-values-without/m-p/52716#M29848</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2018-03-07T12:29:18Z</dc:date>
    </item>
    <item>
      <title>Re: How do I remove a column formula but retain the values (with scripting)</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-I-remove-a-column-formula-but-retain-the-values-without/m-p/52733#M29859</link>
      <description>&lt;P&gt;I'm trying to delete a column in JMP. However, the column to be deleted is used by another column in a formula. I can't find the syntax to remove the formula when I delete the column. Any ideas how to accomplish this would be appreciated. I have tried several things with no success:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;col &amp;lt;&amp;lt; Go To( :PC50);
Column("PC50") &amp;lt;&amp;lt; delete formula;
dt &amp;lt;

col &amp;lt;&amp;lt; Go To( :PC50);
Col ("PC50") &amp;lt;&amp;lt; delete formula;
dt &amp;lt;

col &amp;lt;&amp;lt; Go To( :"PC50");
Col("PC50") &amp;lt;&amp;lt; delete formula;
dt &amp;lt;
col &amp;lt;&amp;lt; Go To( :PC50);
col(:PC50) &amp;lt;&amp;lt; delete formula;
dt &amp;lt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;and on and on...&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;What am I missing?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Mar 2018 18:42:37 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-I-remove-a-column-formula-but-retain-the-values-without/m-p/52733#M29859</guid>
      <dc:creator>DonHil</dc:creator>
      <dc:date>2018-03-07T18:42:37Z</dc:date>
    </item>
    <item>
      <title>Re: How do I remove a column formula but retain the values (with scripting)</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-I-remove-a-column-formula-but-retain-the-values-without/m-p/52747#M29869</link>
      <description>&lt;P&gt;Here is an example of how to delete a column that is being referenced in the formula of another column.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA\big class.jmp" );
dt &amp;lt;&amp;lt; New Column( "LogHeight", formula( Log( :Height ) ) );

// Delete the formula in the column LogHeight
Column( "LogHeight" ) &amp;lt;&amp;lt; delete formula;
dt &amp;lt;&amp;lt; delete columns( "Height" );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 07 Mar 2018 18:29:48 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-I-remove-a-column-formula-but-retain-the-values-without/m-p/52747#M29869</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2018-03-07T18:29:48Z</dc:date>
    </item>
    <item>
      <title>Re: How do I remove a column formula but retain the values (with scripting)</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-I-remove-a-column-formula-but-retain-the-values-without/m-p/52797#M29908</link>
      <description>&lt;P&gt;Thank you!&amp;nbsp; Thank you! Thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 08 Mar 2018 15:08:29 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-I-remove-a-column-formula-but-retain-the-values-without/m-p/52797#M29908</guid>
      <dc:creator>DonHil</dc:creator>
      <dc:date>2018-03-08T15:08:29Z</dc:date>
    </item>
  </channel>
</rss>

