<?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 find is missing start from column X till ncol() in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/find-is-missing-start-from-column-X-till-ncol/m-p/866685#M102938</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a table that has thousand of columns. I want to use column matrix to find if across a range of columns is missing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I first identify the starting of the first column number using Loc().&lt;/P&gt;
&lt;P&gt;allcol = dt &amp;lt;&amp;lt; get column names(string);&lt;/P&gt;
&lt;P&gt;colname = column ("starting column") &amp;lt;&amp;lt; getname;&lt;/P&gt;
&lt;P&gt;colnumber =&amp;nbsp;&amp;nbsp;(Loc(allcol ,colname))[1];&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;then I want to find if the columns from colnumber till ncol() is missing.&amp;nbsp; something like below but it failed. can someone point me how I can make it right ?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;dt &amp;lt;&amp;lt; select where (ismissing(column()[colnumber :: ncol()]))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 07 Apr 2025 22:51:20 GMT</pubDate>
    <dc:creator>dadawasozo</dc:creator>
    <dc:date>2025-04-07T22:51:20Z</dc:date>
    <item>
      <title>find is missing start from column X till ncol()</title>
      <link>https://community.jmp.com/t5/Discussions/find-is-missing-start-from-column-X-till-ncol/m-p/866685#M102938</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a table that has thousand of columns. I want to use column matrix to find if across a range of columns is missing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I first identify the starting of the first column number using Loc().&lt;/P&gt;
&lt;P&gt;allcol = dt &amp;lt;&amp;lt; get column names(string);&lt;/P&gt;
&lt;P&gt;colname = column ("starting column") &amp;lt;&amp;lt; getname;&lt;/P&gt;
&lt;P&gt;colnumber =&amp;nbsp;&amp;nbsp;(Loc(allcol ,colname))[1];&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;then I want to find if the columns from colnumber till ncol() is missing.&amp;nbsp; something like below but it failed. can someone point me how I can make it right ?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;dt &amp;lt;&amp;lt; select where (ismissing(column()[colnumber :: ncol()]))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Apr 2025 22:51:20 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/find-is-missing-start-from-column-X-till-ncol/m-p/866685#M102938</guid>
      <dc:creator>dadawasozo</dc:creator>
      <dc:date>2025-04-07T22:51:20Z</dc:date>
    </item>
    <item>
      <title>Re: find is missing start from column X till ncol()</title>
      <link>https://community.jmp.com/t5/Discussions/find-is-missing-start-from-column-X-till-ncol/m-p/866706#M102941</link>
      <description>&lt;P&gt;Here is an example of finding rows that have missing values within a range of columns for each row.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = 
// Open Data Table: semiconductor capability.jmp
// → Data Table( "semiconductor capability" )
Open( "$SAMPLE_DATA/semiconductor capability.jmp" );
// for example purposes set some random cells to missing values
For( i = 1, i &amp;lt;= Random Integer( 1, 100 ), i++,
	random row = Random Integer( 1, 1455 );
	random col = Random Integer( 5, 132 );
	dt[random row, random col] = .;
);

starting colName = "NPN1";
allcol = dt &amp;lt;&amp;lt; get column names( string );
starting col = Contains( allcol, starting colName );
rowsWithMissing = [];

For Each Row(
	mat = dt[Row(), starting col :: N Col( dt )];
	If( Length( Loc( mat, . ) ) &amp;gt; 0,
		rowsWithMissing = rowsWithMissing || matrix(row());
	);
);
show(rowsWithMissing);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 08 Apr 2025 01:34:43 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/find-is-missing-start-from-column-X-till-ncol/m-p/866706#M102941</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2025-04-08T01:34:43Z</dc:date>
    </item>
  </channel>
</rss>

