<?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: Is Missing command- Scrippting in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Is-Missing-command-Scrippting/m-p/544140#M76303</link>
    <description>&lt;P&gt;Put a &lt;CODE class=" language-jsl"&gt;[]&lt;/CODE&gt; at the end of your &lt;CODE class=" language-jsl"&gt;Column()&lt;/CODE&gt; functions:&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="ErraticAttack_0-1663100083080.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/45433iCA9A7758654711EE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ErraticAttack_0-1663100083080.png" alt="ErraticAttack_0-1663100083080.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 13 Sep 2022 20:15:25 GMT</pubDate>
    <dc:creator>ErraticAttack</dc:creator>
    <dc:date>2022-09-13T20:15:25Z</dc:date>
    <item>
      <title>Is Missing command- Scrippting</title>
      <link>https://community.jmp.com/t5/Discussions/Is-Missing-command-Scrippting/m-p/544081#M76295</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="GroupSquareWolf_0-1663088934362.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/45429i3CB4A47E2746F85F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="GroupSquareWolf_0-1663088934362.png" alt="GroupSquareWolf_0-1663088934362.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In this example, ;"Sum of A+B+C" calculates sum of :A + :B + :C in each row with this formula:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;If( Is Missing( :A ), 0, :A ) + If( Is Missing( :B ), 0, :B ) + If( Is Missing( :C ), 0, :C )&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;If I change the specific column names to with column number, the script is not working anymore and generates an error&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;If( Is Missing( Column( 1 ) ), 0, Column( 1 ) ) + If( Is Missing( Column( 2 ) ), 0, Column( 2 ) ) + If( Is Missing( Column( 3 ) ), 0, Column( 3 ) )&lt;/CODE&gt;&lt;/PRE&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="GroupSquareWolf_2-1663089213081.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/45432iD966F2ABE18B9589/image-size/medium?v=v2&amp;amp;px=400" role="button" title="GroupSquareWolf_2-1663089213081.png" alt="GroupSquareWolf_2-1663089213081.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What am I missing here?&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 15:58:24 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-Missing-command-Scrippting/m-p/544081#M76295</guid>
      <dc:creator>GroupSquareWolf</dc:creator>
      <dc:date>2023-06-09T15:58:24Z</dc:date>
    </item>
    <item>
      <title>Re: Is Missing command- Scrippting</title>
      <link>https://community.jmp.com/t5/Discussions/Is-Missing-command-Scrippting/m-p/544111#M76299</link>
      <description>&lt;P&gt;If you are using Column() I think you will also have to provide row number. For example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Column(1)[Row()]&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;(AsColumn(Column(1)) might also work).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also using&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Sum(:A, :B, :C)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;should work without IsMissings&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Sep 2022 17:52:58 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-Missing-command-Scrippting/m-p/544111#M76299</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2022-09-13T17:52:58Z</dc:date>
    </item>
    <item>
      <title>Re: Is Missing command- Scrippting</title>
      <link>https://community.jmp.com/t5/Discussions/Is-Missing-command-Scrippting/m-p/544140#M76303</link>
      <description>&lt;P&gt;Put a &lt;CODE class=" language-jsl"&gt;[]&lt;/CODE&gt; at the end of your &lt;CODE class=" language-jsl"&gt;Column()&lt;/CODE&gt; functions:&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="ErraticAttack_0-1663100083080.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/45433iCA9A7758654711EE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ErraticAttack_0-1663100083080.png" alt="ErraticAttack_0-1663100083080.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Sep 2022 20:15:25 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-Missing-command-Scrippting/m-p/544140#M76303</guid>
      <dc:creator>ErraticAttack</dc:creator>
      <dc:date>2022-09-13T20:15:25Z</dc:date>
    </item>
    <item>
      <title>Re: Is Missing command- Scrippting</title>
      <link>https://community.jmp.com/t5/Discussions/Is-Missing-command-Scrippting/m-p/544172#M76307</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/14366"&gt;@jthi&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also using&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Sum(:A, :B, :C)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;should work without IsMissings&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I would second this. It looks like you're just trying to avoid the propagation of missing values that the + operator does and, as&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/14366"&gt;@jthi&lt;/a&gt;&amp;nbsp;points out the &lt;A href="https://www.jmp.com/support/help/en/16.2/index.shtml#page/jmp/statistical-functions-2.shtml#ww2755226" target="_self"&gt;Sum()&lt;/A&gt; function does just that. More information here:&amp;nbsp;&lt;LI-MESSAGE title="Add() vs. + vs. Sum(): What’s the difference?" uid="396932" url="https://community.jmp.com/t5/JMPer-Cable/Add-vs-vs-Sum-What-s-the-difference/m-p/396932#U396932" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-blog-thread lia-fa-icon lia-fa-blog lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Sep 2022 01:17:49 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-Missing-command-Scrippting/m-p/544172#M76307</guid>
      <dc:creator>Jeff_Perkinson</dc:creator>
      <dc:date>2022-09-14T01:17:49Z</dc:date>
    </item>
    <item>
      <title>Re: Is Missing command- Scrippting</title>
      <link>https://community.jmp.com/t5/Discussions/Is-Missing-command-Scrippting/m-p/544199#M76308</link>
      <description>&lt;P&gt;The empty square brackets tell JMP to index the current row of the column. Using [row()] is the same idea. Without them, the data type is a column, not a number, and isMissing requires a numeric argument.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The sum() function is a great choice for this.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Sep 2022 02:54:45 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-Missing-command-Scrippting/m-p/544199#M76308</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2022-09-14T02:54:45Z</dc:date>
    </item>
  </channel>
</rss>

