<?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 to find and delete rows in a data table containing a text (or elements in a list) in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-find-and-delete-rows-in-a-data-table-containing-a-text-or/m-p/7081#M7075</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a list containing a combinations of letters ... e.g A B C D...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;Column1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;A&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;B&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;C&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;D&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;AB&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;AC&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;AD&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ABC&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ABD&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;..... so forth or as a list e.g. &lt;STRONG&gt;mylist = {A, B, C, D, AB, AC, AD, ABC, ABD....}.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While it is possible to find those cells starting with "AB" using Edit-Search-Find from the table menu, it is strange I cannot find a way to do this using JSL script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would imagine something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;loc (mylist,"AB?") &lt;/EM&gt;f&lt;/STRONG&gt;or a list or&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;current data table &amp;lt;&amp;lt; get rows where (Column 1 == "AB?") &lt;/EM&gt;&lt;/STRONG&gt;for a data table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...should work but they don't.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone suggest a way to locate these values using a wildcard (i.e. AB?) or &lt;EM&gt;&lt;STRONG&gt;other clever ways to find these items and delete them?&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 Jul 2013 21:44:15 GMT</pubDate>
    <dc:creator>woongkim79</dc:creator>
    <dc:date>2013-07-08T21:44:15Z</dc:date>
    <item>
      <title>How to find and delete rows in a data table containing a text (or elements in a list)</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-find-and-delete-rows-in-a-data-table-containing-a-text-or/m-p/7081#M7075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a list containing a combinations of letters ... e.g A B C D...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;Column1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;A&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;B&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;C&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;D&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;AB&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;AC&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;AD&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ABC&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ABD&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;..... so forth or as a list e.g. &lt;STRONG&gt;mylist = {A, B, C, D, AB, AC, AD, ABC, ABD....}.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While it is possible to find those cells starting with "AB" using Edit-Search-Find from the table menu, it is strange I cannot find a way to do this using JSL script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would imagine something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;loc (mylist,"AB?") &lt;/EM&gt;f&lt;/STRONG&gt;or a list or&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;current data table &amp;lt;&amp;lt; get rows where (Column 1 == "AB?") &lt;/EM&gt;&lt;/STRONG&gt;for a data table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...should work but they don't.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone suggest a way to locate these values using a wildcard (i.e. AB?) or &lt;EM&gt;&lt;STRONG&gt;other clever ways to find these items and delete them?&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jul 2013 21:44:15 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-find-and-delete-rows-in-a-data-table-containing-a-text-or/m-p/7081#M7075</guid>
      <dc:creator>woongkim79</dc:creator>
      <dc:date>2013-07-08T21:44:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to find and delete rows in a data table containing a text (or elements in a list)</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-find-and-delete-rows-in-a-data-table-containing-a-text-or/m-p/7082#M7076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is a perfect situation for using regular expressions.&amp;nbsp; For a table you can use the REGEX function:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black;"&gt;dt &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: navy;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: #0000dd;"&gt;open&lt;/SPAN&gt;&lt;STRONG style="color: black; font-size: 10.0pt; font-family: 'Courier New';"&gt;(&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple;"&gt;"$sample_data/Car Physical Data.jmp"&lt;/SPAN&gt;&lt;STRONG style="color: black; font-size: 10.0pt; font-family: 'Courier New';"&gt;)&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: navy;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black;"&gt;ch_rows &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: navy;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black;"&gt; dt &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: navy;"&gt;&amp;lt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black;"&gt; get rows where&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: #0000dd;"&gt;regex&lt;/SPAN&gt;&lt;STRONG style="color: black; font-size: 10.0pt; font-family: 'Courier New';"&gt;(&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: navy;"&gt;:&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black;"&gt;Model&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: navy;"&gt;,&lt;/SPAN&gt; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple;"&gt;"^Ch"&lt;/SPAN&gt;&lt;STRONG style="color: black; font-size: 10.0pt; font-family: 'Courier New';"&gt;)&lt;/STRONG&gt; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: navy;"&gt;==&lt;/SPAN&gt; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple;"&gt;"Ch"&lt;/SPAN&gt;&lt;STRONG style="color: black; font-size: 10.0pt; font-family: 'Courier New';"&gt;)&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: navy;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That code snippet will find all rows beginning with the string "Ch".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jul 2013 13:32:59 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-find-and-delete-rows-in-a-data-table-containing-a-text-or/m-p/7082#M7076</guid>
      <dc:creator>pmroz</dc:creator>
      <dc:date>2013-07-09T13:32:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to find and delete rows in a data table containing a text (or elements in a list)</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-find-and-delete-rows-in-a-data-table-containing-a-text-or/m-p/7083#M7077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Beautiful!&amp;nbsp; Thank you so much PMroz.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jul 2013 17:29:27 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-find-and-delete-rows-in-a-data-table-containing-a-text-or/m-p/7083#M7077</guid>
      <dc:creator>woongkim79</dc:creator>
      <dc:date>2013-07-09T17:29:27Z</dc:date>
    </item>
  </channel>
</rss>

