<?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: List of Missing Values in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/List-of-Missing-Values/m-p/38627#M22606</link>
    <description>&lt;P&gt;Another method that I have used in such cases, is to use the Sum() function. &amp;nbsp;It will work for both lists and scaler values, and will return a missing value when all elements of the list are missing.&lt;/P&gt;</description>
    <pubDate>Fri, 28 Apr 2017 17:02:21 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2017-04-28T17:02:21Z</dc:date>
    <item>
      <title>List of Missing Values</title>
      <link>https://community.jmp.com/t5/Discussions/List-of-Missing-Values/m-p/38624#M22603</link>
      <description>&lt;P&gt;I am writing a script that determines positional information using lists. It repeats several times for different groups of data, but some of the groups do not contain what I am looking for. This results in a list of missing values {., ., ., ., ., .}.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When there are values in the list, I use List[Loc Nonmissing(List)] to get only the nonmissing values from my list and then N Items to count how many nonmissing values my list contains. However, when the list has only empty values, Loc Nonmissing returns [](0,1) which gives an error because it is used as a subscript.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can't figure out a way to deal with these lists full of missing values. Does anyone have any ideas???&lt;/P&gt;</description>
      <pubDate>Fri, 28 Apr 2017 16:00:12 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/List-of-Missing-Values/m-p/38624#M22603</guid>
      <dc:creator>aallman</dc:creator>
      <dc:date>2017-04-28T16:00:12Z</dc:date>
    </item>
    <item>
      <title>Re: List of Missing Values</title>
      <link>https://community.jmp.com/t5/Discussions/List-of-Missing-Values/m-p/38625#M22604</link>
      <description>&lt;P&gt;Maybe try using a "Try()". &amp;nbsp;This will prevent the error and you can add an argument&amp;nbsp;in the Try() statement to just assign a value of zero to any variable that might contain the N Items command. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Apr 2017 16:08:29 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/List-of-Missing-Values/m-p/38625#M22604</guid>
      <dc:creator>MikeD_Anderson</dc:creator>
      <dc:date>2017-04-28T16:08:29Z</dc:date>
    </item>
    <item>
      <title>Re: List of Missing Values</title>
      <link>https://community.jmp.com/t5/Discussions/List-of-Missing-Values/m-p/38627#M22606</link>
      <description>&lt;P&gt;Another method that I have used in such cases, is to use the Sum() function. &amp;nbsp;It will work for both lists and scaler values, and will return a missing value when all elements of the list are missing.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Apr 2017 17:02:21 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/List-of-Missing-Values/m-p/38627#M22606</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2017-04-28T17:02:21Z</dc:date>
    </item>
    <item>
      <title>Re: List of Missing Values</title>
      <link>https://community.jmp.com/t5/Discussions/List-of-Missing-Values/m-p/38634#M22609</link>
      <description>&lt;P&gt;The [](&lt;FONT color="#FF6600"&gt;0&lt;/FONT&gt;,&lt;FONT color="#3366FF"&gt;1&lt;/FONT&gt;) indicates that it returned a matrix with &lt;FONT color="#FF6600"&gt;0 rows&lt;/FONT&gt; and &lt;FONT color="#3366FF"&gt;1 column&lt;/FONT&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, you can use the NRow() function to see if it has 0 rows and act accordingly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;//:*/
x={., ., ., ., ., .};

y=loc nonmissing(x);

nrow(y);
/*:

0&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 28 Apr 2017 21:42:09 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/List-of-Missing-Values/m-p/38634#M22609</guid>
      <dc:creator>Jeff_Perkinson</dc:creator>
      <dc:date>2017-04-28T21:42:09Z</dc:date>
    </item>
  </channel>
</rss>

