<?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 Deleting Multiple Replicate Rows (n=5 or more) in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Deleting-Multiple-Replicate-Rows-n-5-or-more/m-p/527136#M75103</link>
    <description>&lt;P&gt;I have a table where column 1 has titles, and column 2 has values. I need a script that can find any title in column 1 that appears more that 5 times and deletes the entire row. If it it equal to or less than 5, it can stay. The closest thing I could come to was deleting duplicates, but I want to keep duplicates and delete only anything over a "quintuplet".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;JMP 16&lt;/P&gt;</description>
    <pubDate>Sat, 10 Jun 2023 23:51:53 GMT</pubDate>
    <dc:creator>Arocha1</dc:creator>
    <dc:date>2023-06-10T23:51:53Z</dc:date>
    <item>
      <title>Deleting Multiple Replicate Rows (n=5 or more)</title>
      <link>https://community.jmp.com/t5/Discussions/Deleting-Multiple-Replicate-Rows-n-5-or-more/m-p/527136#M75103</link>
      <description>&lt;P&gt;I have a table where column 1 has titles, and column 2 has values. I need a script that can find any title in column 1 that appears more that 5 times and deletes the entire row. If it it equal to or less than 5, it can stay. The closest thing I could come to was deleting duplicates, but I want to keep duplicates and delete only anything over a "quintuplet".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;JMP 16&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2023 23:51:53 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Deleting-Multiple-Replicate-Rows-n-5-or-more/m-p/527136#M75103</guid>
      <dc:creator>Arocha1</dc:creator>
      <dc:date>2023-06-10T23:51:53Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting Multiple Replicate Rows (n=5 or more)</title>
      <link>https://community.jmp.com/t5/Discussions/Deleting-Multiple-Replicate-Rows-n-5-or-more/m-p/527188#M75112</link>
      <description>&lt;P&gt;You could create summary table and then check from the if N Rows &amp;gt;= 5 and using summary table to select correct rows from main table and then delete those rows from main table. Same could also be done by using Summarize, Tabulate, Col formula column and many other methods.&lt;/P&gt;
&lt;P&gt;Here is example using calculation column&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

dt = New Table("Untitled",
	Add Rows(6),
	New Column("Column 1", Character, "Nominal", Set Values({"a", "a", "a", "b", "b", "c"}))
);

wait(1);
dt &amp;lt;&amp;lt; New Column("Count", Numeric, Continuous, &amp;lt;&amp;lt; Set Each Value(
	Col Number(1, :Column 1)
));

wait(1);
dt &amp;lt;&amp;lt; Select Where(:Count &amp;gt;= 3) &amp;lt;&amp;lt; Delete Rows;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 27 Jul 2022 18:09:26 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Deleting-Multiple-Replicate-Rows-n-5-or-more/m-p/527188#M75112</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2022-07-27T18:09:26Z</dc:date>
    </item>
  </channel>
</rss>

