<?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: Remove rows with one or more empty values using JSL in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Remove-rows-with-one-or-more-empty-values-using-JSL/m-p/4889#M4889</link>
    <description>&lt;P&gt;You were using the string concatenation operator || instead of the OR operator |.&amp;nbsp; As MS showed you need to use the Is Missing function and not Is Empty.&amp;nbsp; Your code becomes:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dtsplit &amp;lt;&amp;lt; Select Where(Is missing(:T1) | Is missing(:T2) | is missing(:T3)) &amp;lt;&amp;lt; Delete Rows;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 14 Jun 2018 14:09:28 GMT</pubDate>
    <dc:creator>pmroz</dc:creator>
    <dc:date>2018-06-14T14:09:28Z</dc:date>
    <item>
      <title>Remove rows with one or more empty values using JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Remove-rows-with-one-or-more-empty-values-using-JSL/m-p/4886#M4886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a table where each row contains a single measurement type at three temperatures, each stored in its own column. Ultimately, I want to calculate the deltas between these measurements and then stack that data into a new table. However, not all measurements are taken at all three temperatures, and I need to exclude those measurements (rows) where one or more of the data columns are empty. I need to do this using a JMP 9.0 script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Given:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dtSplit =&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid #000000; width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Measurement&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;T1&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;T2&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;T3&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Measurement A&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;5&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;12&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;89&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Measurement B&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;13&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;8&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Measurement C&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;52&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;57&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Measurement D&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;22&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;21&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Measurement E&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;8&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Measurement F&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;15&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Measurement G&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;54&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to produce:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dtClean =&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid #000000; width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Measurement&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;T1&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;T2&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;T3&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Measurement A&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;5&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;12&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;89&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was trying to use something like:&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13371150858817678" jivemacro_uid="_13371150858817678"&gt;dtSplit &amp;lt;&amp;lt; Select Where(&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Is Empty(:T1) ||&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Is Empty(:T2) ||&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; is Empty(:T3)&lt;BR /&gt;) &amp;lt;&amp;lt; Delete Rows;&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;However, any Select Where(Is Empty(:COL)) always selects all rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm sure I am missing something simple, your help is greatly appreciated, thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2012 20:50:55 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Remove-rows-with-one-or-more-empty-values-using-JSL/m-p/4886#M4886</guid>
      <dc:creator>mwyant</dc:creator>
      <dc:date>2012-05-15T20:50:55Z</dc:date>
    </item>
    <item>
      <title>Re: Remove rows with one or more empty values using JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Remove-rows-with-one-or-more-empty-values-using-JSL/m-p/4887#M4887</link>
      <description>&lt;P&gt;This can be accomplished in different ways. For numeric columns matrix functions often are effective.&lt;/P&gt;
&lt;P&gt;Here is an example deleting all rows with missing cells in columns 2, 3 &amp;amp; 4:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;keeprows = Loc Nonmissing( dtSplit &amp;lt;&amp;lt; get as matrix( {2, 3, 4} ) );
dtSplit &amp;lt;&amp;lt; select rows( keeprows ) &amp;lt;&amp;lt; invert Row Selection &amp;lt;&amp;lt; delete rows;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is an alternative approach making a subset of the columns with no missing cells (keeping the original table unchanged):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dtClean = dtSplit &amp;lt;&amp;lt; Clear Column Selection() &amp;lt;&amp;lt; subset( rows( Loc Nonmissing( dt &amp;lt;&amp;lt; get as matrix( {2, 3, 4} ) ) ) );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 14 Jun 2018 14:10:15 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Remove-rows-with-one-or-more-empty-values-using-JSL/m-p/4887#M4887</guid>
      <dc:creator>ms</dc:creator>
      <dc:date>2018-06-14T14:10:15Z</dc:date>
    </item>
    <item>
      <title>Re: Remove rows with one or more empty values using JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Remove-rows-with-one-or-more-empty-values-using-JSL/m-p/4888#M4888</link>
      <description>&lt;P&gt;Sorry, I missed the JMP9 requirement. The function Loc Nonmissing() appears to be new to JMP 10 so the above do not work in JMP 9.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Heres an alternative approach that works in JMP 9, similar to your code but using a loop.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;For( i = 2, i &amp;lt;= 4, i++,
  dtSplit &amp;lt;&amp;lt; select where( Is Missing( Column( i )[] ) ) &amp;lt;&amp;lt; delete rows
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jun 2018 14:10:55 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Remove-rows-with-one-or-more-empty-values-using-JSL/m-p/4888#M4888</guid>
      <dc:creator>ms</dc:creator>
      <dc:date>2018-06-14T14:10:55Z</dc:date>
    </item>
    <item>
      <title>Re: Remove rows with one or more empty values using JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Remove-rows-with-one-or-more-empty-values-using-JSL/m-p/4889#M4889</link>
      <description>&lt;P&gt;You were using the string concatenation operator || instead of the OR operator |.&amp;nbsp; As MS showed you need to use the Is Missing function and not Is Empty.&amp;nbsp; Your code becomes:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dtsplit &amp;lt;&amp;lt; Select Where(Is missing(:T1) | Is missing(:T2) | is missing(:T3)) &amp;lt;&amp;lt; Delete Rows;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 14 Jun 2018 14:09:28 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Remove-rows-with-one-or-more-empty-values-using-JSL/m-p/4889#M4889</guid>
      <dc:creator>pmroz</dc:creator>
      <dc:date>2018-06-14T14:09:28Z</dc:date>
    </item>
    <item>
      <title>Re: Remove rows with one or more empty values using JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Remove-rows-with-one-or-more-empty-values-using-JSL/m-p/4890#M4890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using the concatenation operator was a transcription error--old habits die hard.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;turns out the problem was my column names, which were actually '88', '95' and '105', and using Is Missing(:88) selected all rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13371834740247051" jivemacro_uid="_13371834740247051" modifiedtitle="true"&gt;&lt;BR /&gt;&lt;P&gt;dtsplit &amp;lt;&amp;lt; Select Where(Is missing(:Name("T1")) | Is missing(:Name("T2")) | is missing(:Name("T3"))) &amp;lt;&amp;lt; Delete Rows;&lt;/P&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Works great.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 May 2012 15:51:59 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Remove-rows-with-one-or-more-empty-values-using-JSL/m-p/4890#M4890</guid>
      <dc:creator>mwyant</dc:creator>
      <dc:date>2012-05-16T15:51:59Z</dc:date>
    </item>
    <item>
      <title>Re: Remove rows with one or more empty values using JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Remove-rows-with-one-or-more-empty-values-using-JSL/m-p/67360#M34602</link>
      <description>&lt;P&gt;Great discussion. We had similar issue, where importing from sensor files we had a lot of empty rows at the end of the file. We wanted to remove rows where no sensor data was located. However, did not want to remove rows where there still was some information.&amp;nbsp;Below was written in JMP14, but think it will work for previous versions. In JMP14, I know there is Row Selection &amp;gt; Select Duplicate Rows. But could not find a similar function that would sum all the numeric columns across one row. In the script below, Sum() would return null across the row in the matrix, but I wanted a zero. Found the output of V Sum() would return 0 for all null. To make&amp;nbsp;work, just had to transpose the&amp;nbsp;row vector into a column vector.&amp;nbsp;This works for no matter how many numeric columns you have, as long as they are all empty. Still interested if someone has a better solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Current Data Table();

// Get all numeric data

m = dt &amp;lt;&amp;lt; Get As Matrix;

// for each row, test if the V Sum is 0 or non-zero
// V Sum returns 0 for all null
// Sum() returns null for all null

rowlist = {};

For(i= N Rows(m), i&amp;gt;=1,i--,
	If(V Sum(Transpose(m[i,0]))[1] == 0,
		Insert Into(rowlist,i)
	)
);
dt &amp;lt;&amp;lt; Delete Rows(rowlist);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 09 Aug 2018 18:20:09 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Remove-rows-with-one-or-more-empty-values-using-JSL/m-p/67360#M34602</guid>
      <dc:creator>Vball247</dc:creator>
      <dc:date>2018-08-09T18:20:09Z</dc:date>
    </item>
    <item>
      <title>Re: Remove rows with one or more empty values using JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Remove-rows-with-one-or-more-empty-values-using-JSL/m-p/83827#M37688</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am trying to do slightly the same.&lt;/P&gt;&lt;P&gt;I need to check if a cell is empty and then delete the row if yes.&lt;/P&gt;&lt;P&gt;I tried the following -&lt;/P&gt;&lt;P&gt;dt &amp;lt;&amp;lt; select where( Is Missing( Column( dt,"Value" )[7] ) ) &amp;lt;&amp;lt; delete rows;&lt;/P&gt;&lt;P&gt;But it deletes all rows in the table.&lt;/P&gt;&lt;P&gt;Looking for ideas.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Nov 2018 00:14:05 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Remove-rows-with-one-or-more-empty-values-using-JSL/m-p/83827#M37688</guid>
      <dc:creator>ENTHU</dc:creator>
      <dc:date>2018-11-20T00:14:05Z</dc:date>
    </item>
    <item>
      <title>Re: Remove rows with one or more empty values using JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Remove-rows-with-one-or-more-empty-values-using-JSL/m-p/83836#M37689</link>
      <description>&lt;P&gt;Your code is only checking for Row 7.&amp;nbsp; You need to test each row&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt &amp;lt;&amp;lt; select where( Is Missing( Column( dt,"weight" )[row()] ) ) &amp;lt;&amp;lt; delete rows;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 20 Nov 2018 01:08:29 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Remove-rows-with-one-or-more-empty-values-using-JSL/m-p/83836#M37689</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2018-11-20T01:08:29Z</dc:date>
    </item>
    <item>
      <title>Re: Remove rows with one or more empty values using JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Remove-rows-with-one-or-more-empty-values-using-JSL/m-p/83902#M37699</link>
      <description>&lt;P&gt;If you're only checking a single cell:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;if ( Is Missing( Column( dt,"Value" )[7] ),
	dt &amp;lt;&amp;lt; delete rows([7]);
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 20 Nov 2018 17:14:45 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Remove-rows-with-one-or-more-empty-values-using-JSL/m-p/83902#M37699</guid>
      <dc:creator>pmroz</dc:creator>
      <dc:date>2018-11-20T17:14:45Z</dc:date>
    </item>
    <item>
      <title>Re: Remove rows with one or more empty values using JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Remove-rows-with-one-or-more-empty-values-using-JSL/m-p/190459#M40907</link>
      <description>&lt;P&gt;HI&lt;/P&gt;&lt;P&gt;This is my first post and not sure if the attached Excel file goes through or not. If not,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am also attaching the PNG of the sample data file&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Data_table_example.PNG" style="width: 305px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/16696iA5D67C4FE3845FC4/image-size/large?v=v2&amp;amp;px=999" role="button" title="Data_table_example.PNG" alt="Data_table_example.PNG" /&gt;&lt;/span&gt;&amp;nbsp;&lt;BR /&gt;I am very new to JMP (I am using JMP 14) and need helps with the row delete script.&lt;BR /&gt;My data table contains data of many different devices where each device is test for&lt;BR /&gt;four different failures (sensitivity, mask, EVM and power) across a wide frequency ranges&lt;BR /&gt;from 10 MHz to 1000 Mhz. Passing devices are the ones that have empty cells "" for all four&lt;BR /&gt;test across frequency ranges and I would like to remove them from the data table.&lt;BR /&gt;(delete the rows in green of the attached Excel file - devices C, G, H, I, J, K, and N)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;1st Problem: How to delete empty rows (with columns 10 MHz to 1000 MHz = empty)&lt;BR /&gt;Below command I found is similar but not useful because I have 100 different columns and "and"&lt;BR /&gt;them all out is quite lengthy and not scalable if we later decided to increase the frequency&lt;BR /&gt;beyound 1000 MHz&lt;/P&gt;&lt;P&gt;dtsplit &amp;lt;&amp;lt; Select Where(Is missing(:T1) | Is missing(:T2) | is missing(:T3)) &amp;lt;&amp;lt; Delete Rows;&lt;BR /&gt;&lt;BR /&gt;I also tried this command:&lt;BR /&gt;For( i = 2, i &amp;lt;= 101, i++,&lt;BR /&gt;dtSplit &amp;lt;&amp;lt; select where( Is Missing( Column( i )[] ) ) &amp;lt;&amp;lt; delete rows&lt;BR /&gt;);&lt;BR /&gt;This command gives me an error:&lt;BR /&gt;In the following script, error marked by /*###*/&lt;BR /&gt;dt = Current Data Table();&lt;BR /&gt;For( i = 2, i &amp;lt;= 100, i++,&lt;BR /&gt;dtSplit/*###*/ &amp;lt;&amp;lt;select where( Is Missing( Column( i )[] ) ) &amp;lt;&amp;lt; delete rows&lt;BR /&gt;);&lt;BR /&gt;&lt;BR /&gt;2nd Problem: Deleted rows must in the multiple of 4 since each device is being tested 4 times.&lt;BR /&gt;I am not exactly sure how to do that&lt;/P&gt;&lt;P&gt;would really appreciate your helps on this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;BR /&gt;new_2_JMP&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 30 Mar 2019 00:43:13 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Remove-rows-with-one-or-more-empty-values-using-JSL/m-p/190459#M40907</guid>
      <dc:creator>new_2_JMP</dc:creator>
      <dc:date>2019-03-30T00:43:13Z</dc:date>
    </item>
    <item>
      <title>Re: Remove rows with one or more empty values using JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Remove-rows-with-one-or-more-empty-values-using-JSL/m-p/190476#M40908</link>
      <description>&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #333333; cursor: text; font-family: inherit; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; line-height: 1.7142; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;You need to look into the Missing Data Pattern plat&lt;/SPAN&gt;form.&amp;nbsp; It will allow you to identify all of the rows that have all missing values, and then you can choose to delete the rows, etc.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Tables==&amp;gt;Missing Data Pattern&lt;/P&gt;</description>
      <pubDate>Sat, 30 Mar 2019 03:05:08 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Remove-rows-with-one-or-more-empty-values-using-JSL/m-p/190476#M40908</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2019-03-30T03:05:08Z</dc:date>
    </item>
    <item>
      <title>Re: Remove rows with one or more empty values using JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Remove-rows-with-one-or-more-empty-values-using-JSL/m-p/191231#M41021</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Thanks for the input. Checked out the Missing&amp;nbsp; Data Pattern you recommended and it sort of works but not fully.&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my data table, each name has 4 different rows. Each of the 4 row of a name is a result of 1 test (sens, mask, EVM and power)&lt;/P&gt;&lt;P&gt;In my data table example, device A fails the first test "Sens" and passes the 2nd, 3rd and 4th test. Because device A fails "Sens", this is a fail device even though it passes the&amp;nbsp;2nd, 3rd and 4th test.&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I use&amp;nbsp;Tables==&amp;gt;Missing Data Pattern, then 2nd, 3rd and 4th rows of A will be deleted. Which is not what I am looking for. I want to delete 4 rows of each name when there are no data on them ( no data on 10 MHz, 20 MHz, 30 MHz and 1000 MHz). In my data table, names C, G, H, I, J K and N will be deleted.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your helps&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Apr 2019 00:28:10 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Remove-rows-with-one-or-more-empty-values-using-JSL/m-p/191231#M41021</guid>
      <dc:creator>new_2_JMP</dc:creator>
      <dc:date>2019-04-04T00:28:10Z</dc:date>
    </item>
    <item>
      <title>Re: Remove rows with one or more empty values using JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Remove-rows-with-one-or-more-empty-values-using-JSL/m-p/869260#M103212</link>
      <description>&lt;P&gt;This script will start working after the column titled "Names" and continue to the end of the table deleting empty rows.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;// Get the current data table
dt = Current Data Table();

// Get all column names as strings
cnmes = dt &amp;lt;&amp;lt; Get Column Names("string");

// Initialize Start and End indices
Start = .;
End = N Items(cnmes);

// Find the index of the "Device 2" column
For(k = 1, k &amp;lt;= N Items(cnmes), k++,
    If(Contains(cnmes[k], "Names"),
        Start = k + 1;
        Break(); // Exit loop once found
    );
);

// Loop through the columns from Start to End and delete rows with missing values
For(i = Start, i &amp;lt;= End, i++,
    dt &amp;lt;&amp;lt; Select Where(Is Missing(Column(i)[])) &amp;lt;&amp;lt; Delete Rows;
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 18 Apr 2025 21:41:04 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Remove-rows-with-one-or-more-empty-values-using-JSL/m-p/869260#M103212</guid>
      <dc:creator>SpannerHead</dc:creator>
      <dc:date>2025-04-18T21:41:04Z</dc:date>
    </item>
  </channel>
</rss>

