<?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 How do I delete columns in a data table with their names containing &amp;quot;UL&amp;quot; or &amp;quot;LL&amp;quot; or &amp;quot;UCL&amp;quot; or &amp;quot;LCL&amp;quot; or &amp;quot;USL&amp;quot; or &amp;quot;LSL&amp;quot; and the column containing only &amp;quot;.&amp;quot; (NOT empty) in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-do-I-delete-columns-in-a-data-table-with-their-names/m-p/367340#M61731</link>
    <description>&lt;P&gt;I have a large dataset on hand and want to delete all columns whose name contain "UL" or "LL" or "UCL" or "LCL" or "USL" or "LSL" and the whole column only contains "." but not empty except the column name. (images are shown below) I did not know how to do this after searching Google and read the JMP manual. Thanks for help on this.&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="mengzy1974_0-1615506089720.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/31189iEC083511DB8C49C4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mengzy1974_0-1615506089720.png" alt="mengzy1974_0-1615506089720.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mengzy1974_1-1615506171257.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/31190i9F919B9242BE02D8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mengzy1974_1-1615506171257.png" alt="mengzy1974_1-1615506171257.png" /&gt;&lt;/span&gt;&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>Fri, 09 Jun 2023 22:08:14 GMT</pubDate>
    <dc:creator>mengzy1974</dc:creator>
    <dc:date>2023-06-09T22:08:14Z</dc:date>
    <item>
      <title>How do I delete columns in a data table with their names containing "UL" or "LL" or "UCL" or "LCL" or "USL" or "LSL" and the column containing only "." (NOT empty)</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-I-delete-columns-in-a-data-table-with-their-names/m-p/367340#M61731</link>
      <description>&lt;P&gt;I have a large dataset on hand and want to delete all columns whose name contain "UL" or "LL" or "UCL" or "LCL" or "USL" or "LSL" and the whole column only contains "." but not empty except the column name. (images are shown below) I did not know how to do this after searching Google and read the JMP manual. Thanks for help on this.&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="mengzy1974_0-1615506089720.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/31189iEC083511DB8C49C4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mengzy1974_0-1615506089720.png" alt="mengzy1974_0-1615506089720.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mengzy1974_1-1615506171257.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/31190i9F919B9242BE02D8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mengzy1974_1-1615506171257.png" alt="mengzy1974_1-1615506171257.png" /&gt;&lt;/span&gt;&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>Fri, 09 Jun 2023 22:08:14 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-I-delete-columns-in-a-data-table-with-their-names/m-p/367340#M61731</guid>
      <dc:creator>mengzy1974</dc:creator>
      <dc:date>2023-06-09T22:08:14Z</dc:date>
    </item>
    <item>
      <title>Re: How do I delete columns in a data table with their names containing "UL" or "LL" or "UCL" or "LCL" or "USL" or "LSL" and the column containing only "." (NOT empty)</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-I-delete-columns-in-a-data-table-with-their-names/m-p/367420#M61736</link>
      <description>&lt;P&gt;Something like this might do it:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

dt = New Table("Untitled 390",
	Add Rows(9),
	Compress File When Saved(1),
	New Column("a",
		Numeric,
		"Continuous",
		Format("Best", 12),
		Set Values([., ., ., ., ., ., ., ., .])
	),
	New Column("a+LCL",
		Numeric,
		"Continuous",
		Format("Best", 12),
		Set Values([1, ., ., ., ., ., ., ., .])
	),
	New Column("b+LCL",
		Numeric,
		"Continuous",
		Format("Best", 12),
		Set Values([., ., ., ., ., ., ., ., .])
	)
);

wait(1);

colNames = dt &amp;lt;&amp;lt; Get Column Names("String");
colContainsList = {"UL", "LL", "UCL", "LCL", "USL", "LSL"};

For(i = 1, i &amp;lt;= N Items(colNames), i++,
	For(k = 1, k &amp;lt;= N Items(colContainsList), k++,
		If(Contains(colNames[i], colContainsList[k]),
			Summarize(dt, uniqValues = By(colNames[i]));
			If(N Items(uniqValues) == 1 &amp;amp; uniqValues[1] == ".",
				dt &amp;lt;&amp;lt; Delete Columns(colNames[i]);
			);
			break();
		);
	);
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Are you sure you want to check if column name contains any of those strings or if the column name ends in them?&lt;/P&gt;</description>
      <pubDate>Fri, 12 Mar 2021 08:56:49 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-I-delete-columns-in-a-data-table-with-their-names/m-p/367420#M61736</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2021-03-12T08:56:49Z</dc:date>
    </item>
  </channel>
</rss>

