<?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 to delete columns where all the rows are &amp;quot;NA&amp;quot;? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-delete-columns-where-all-the-rows-are-quot-NA-quot/m-p/801584#M97733</link>
    <description>&lt;P&gt;Laptop was still on so could access the email, you can perform the column selection from Columns Manager. You can even sort by the N Missing to make it even easier to select the "top" rows&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1727189068456.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/68554iD5A668EC72F1F84A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1727189068456.png" alt="jthi_0-1727189068456.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I also have few addins which can do this BUT I'm not sure if they are still functional in JMP18, &lt;LI-MESSAGE title="Analyse Columns" uid="460329" url="https://community.jmp.com/t5/JMP-Add-Ins/Analyse-Columns/m-p/460329#U460329" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-tkb-thread lia-fa-icon lia-fa-tkb lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;and &lt;A href="https://github.com/jthi-jmp-tools/delete-missing-value-columns" target="_self"&gt;Delete Missing Value Columns (github.com)&lt;/A&gt; .&lt;/P&gt;</description>
    <pubDate>Tue, 24 Sep 2024 14:47:49 GMT</pubDate>
    <dc:creator>jthi</dc:creator>
    <dc:date>2024-09-24T14:47:49Z</dc:date>
    <item>
      <title>How to delete columns where all the rows are "NA"?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-delete-columns-where-all-the-rows-are-quot-NA-quot/m-p/801511#M97715</link>
      <description>&lt;P&gt;Hi I want to get some advice for data filtering. Thanks!&lt;/P&gt;&lt;P&gt;I have some columns where all the rows are "NA". How could I identify those columns and delete them?&lt;/P&gt;&lt;P&gt;The blank cells are resulted from splitting the table. Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2024 09:06:25 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-delete-columns-where-all-the-rows-are-quot-NA-quot/m-p/801511#M97715</guid>
      <dc:creator>Fruit325</dc:creator>
      <dc:date>2024-09-24T09:06:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete columns where all the rows are "NA"?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-delete-columns-where-all-the-rows-are-quot-NA-quot/m-p/801531#M97717</link>
      <description>&lt;P&gt;Are those values "NA" or missing ("" or .)?&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2024 09:27:31 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-delete-columns-where-all-the-rows-are-quot-NA-quot/m-p/801531#M97717</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-09-24T09:27:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete columns where all the rows are "NA"?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-delete-columns-where-all-the-rows-are-quot-NA-quot/m-p/801577#M97728</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/14366"&gt;@jthi&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is missing.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2024 14:30:58 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-delete-columns-where-all-the-rows-are-quot-NA-quot/m-p/801577#M97728</guid>
      <dc:creator>Fruit325</dc:creator>
      <dc:date>2024-09-24T14:30:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete columns where all the rows are "NA"?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-delete-columns-where-all-the-rows-are-quot-NA-quot/m-p/801581#M97731</link>
      <description>&lt;P&gt;There are many ways of doing this (especially when scripting), below is one fairly simple script&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

dt = New Table("Untitled",
	Add Rows(7),
	Compress File When Saved(1),
	New Column("Column 1", Numeric, "Continuous", Format("Best", 12), Set Values([1, 1, 2, 3, 4, ., .])),
	New Column("Column 2", Numeric, "Continuous", Format("Best", 12), Set Values([., 2, ., 2, ., ., 5])),
	New Column("Column 3", Numeric, "Continuous", Format("Best", 12), Set Values([., ., ., ., ., ., .])),
	New Column("Column 4", Numeric, "Continuous", Format("Best", 12), Set Values([., ., ., ., ., ., .])),
	New Column("Column 5", Numeric, "Continuous", Format("Best", 12), Set Values([., ., ., ., ., ., 5]))
);

wait(1); // for demo purposes

For Each({colname}, dt &amp;lt;&amp;lt; Get Column Names("String"),
	If(Col Number(Column(dt, colname)) == 0,
		dt &amp;lt;&amp;lt; Delete Columns(colname);
	);
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You can also use Columns Viewer (in JMP earlier than 18) to select the columns and then delete them&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1727188723703.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/68553i47FBD764154EA138/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1727188723703.png" alt="jthi_0-1727188723703.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In JMP18 you have access to columns manager which might be able to do something similar (I cannot test it as I was kicked out and I don't have access to my email currently to re-verify...)&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2024 14:39:39 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-delete-columns-where-all-the-rows-are-quot-NA-quot/m-p/801581#M97731</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-09-24T14:39:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete columns where all the rows are "NA"?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-delete-columns-where-all-the-rows-are-quot-NA-quot/m-p/801582#M97732</link>
      <description>&lt;P&gt;Hi Jarmo,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much! It worked!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2024 14:43:03 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-delete-columns-where-all-the-rows-are-quot-NA-quot/m-p/801582#M97732</guid>
      <dc:creator>Fruit325</dc:creator>
      <dc:date>2024-09-24T14:43:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete columns where all the rows are "NA"?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-delete-columns-where-all-the-rows-are-quot-NA-quot/m-p/801584#M97733</link>
      <description>&lt;P&gt;Laptop was still on so could access the email, you can perform the column selection from Columns Manager. You can even sort by the N Missing to make it even easier to select the "top" rows&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1727189068456.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/68554iD5A668EC72F1F84A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1727189068456.png" alt="jthi_0-1727189068456.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I also have few addins which can do this BUT I'm not sure if they are still functional in JMP18, &lt;LI-MESSAGE title="Analyse Columns" uid="460329" url="https://community.jmp.com/t5/JMP-Add-Ins/Analyse-Columns/m-p/460329#U460329" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-tkb-thread lia-fa-icon lia-fa-tkb lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;and &lt;A href="https://github.com/jthi-jmp-tools/delete-missing-value-columns" target="_self"&gt;Delete Missing Value Columns (github.com)&lt;/A&gt; .&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2024 14:47:49 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-delete-columns-where-all-the-rows-are-quot-NA-quot/m-p/801584#M97733</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-09-24T14:47:49Z</dc:date>
    </item>
  </channel>
</rss>

