<?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: Identifying duplicate lists in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Identifying-duplicate-lists/m-p/565266#M77725</link>
    <description>&lt;P&gt;In response to&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;Any ideas of how to identify potential duplicate matches of lists for each n items in :ColA?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;Here is an example.&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default to Here( 1 );
dt = New Table( "Untitled 490",
	Add Rows( 4 ),
	Compress File When Saved( 1 ),
	New Column( "A", Character, "Nominal", Set Values( {"A", "B", "C", "D"} ) ),
	New Column( "B",
		Expression,
		"None",
		Set Values( {{"A", "B"}, {"A", "b"}, {"B", "A"}, {"A", "B"}} )
	)
);

// this sorts the lists -- disable if you dont want to sort
For Each Row( dt,
	dt:B = Associative Array( dt:B[] ) &amp;lt;&amp;lt; Get Keys
);

unique items = Associative Array( dt:B );&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sat, 05 Nov 2022 02:13:06 GMT</pubDate>
    <dc:creator>ErraticAttack</dc:creator>
    <dc:date>2022-11-05T02:13:06Z</dc:date>
    <item>
      <title>Identifying duplicate lists</title>
      <link>https://community.jmp.com/t5/Discussions/Identifying-duplicate-lists/m-p/563629#M77644</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have :ColA with n items. In :ColB there are string values. Once :ColB is changed to data type Expression, I’m able to use Words() to change the strings into a list. Then I use Sort List() to alphabetically sort the lists.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to compare the lists in :ColB between the n items in :ColA. Creating a subset of if both n items in :ColA share a common. Example, ItemA and ItemB in :ColA share an exact match of a list in :ColB.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using the Rows &amp;gt; Row Selection &amp;gt; Select Duplicate Rows functionality does not return what I expect when :ColB is selected.&amp;nbsp; I would expect, that if I use this functionality, create a subset of the automatically selected “duplicate” rows, and then sort :ColB, either ascending or descending, that I would find pairs of rows with the exact same lists.&amp;nbsp; This is not the case.&amp;nbsp; Each list is unique.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas of how to identify potential duplicate matches of lists for each n items in :ColA?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This will all be coded in JSL, I just need to know what's going on before I proceed.&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2023 23:56:27 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Identifying-duplicate-lists/m-p/563629#M77644</guid>
      <dc:creator>StarfruitBob</dc:creator>
      <dc:date>2023-06-10T23:56:27Z</dc:date>
    </item>
    <item>
      <title>Re: Identifying duplicate lists</title>
      <link>https://community.jmp.com/t5/Discussions/Identifying-duplicate-lists/m-p/565215#M77722</link>
      <description>&lt;P&gt;Since there's no reply to this yet, my workaround is to use a for loop and compare :colA for each row.&amp;nbsp; I'll look at rows n &amp;amp; n + 1 and if they're equal I'll flag them somehow and add to the for loop counter, because both of the rows will not need to be counted again.&lt;BR /&gt;&lt;BR /&gt;I'd like to learn if someone has simple alternative.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Nov 2022 21:43:48 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Identifying-duplicate-lists/m-p/565215#M77722</guid>
      <dc:creator>StarfruitBob</dc:creator>
      <dc:date>2022-11-04T21:43:48Z</dc:date>
    </item>
    <item>
      <title>Re: Identifying duplicate lists</title>
      <link>https://community.jmp.com/t5/Discussions/Identifying-duplicate-lists/m-p/565266#M77725</link>
      <description>&lt;P&gt;In response to&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;Any ideas of how to identify potential duplicate matches of lists for each n items in :ColA?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;Here is an example.&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default to Here( 1 );
dt = New Table( "Untitled 490",
	Add Rows( 4 ),
	Compress File When Saved( 1 ),
	New Column( "A", Character, "Nominal", Set Values( {"A", "B", "C", "D"} ) ),
	New Column( "B",
		Expression,
		"None",
		Set Values( {{"A", "B"}, {"A", "b"}, {"B", "A"}, {"A", "B"}} )
	)
);

// this sorts the lists -- disable if you dont want to sort
For Each Row( dt,
	dt:B = Associative Array( dt:B[] ) &amp;lt;&amp;lt; Get Keys
);

unique items = Associative Array( dt:B );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 05 Nov 2022 02:13:06 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Identifying-duplicate-lists/m-p/565266#M77725</guid>
      <dc:creator>ErraticAttack</dc:creator>
      <dc:date>2022-11-05T02:13:06Z</dc:date>
    </item>
    <item>
      <title>Re: Identifying duplicate lists</title>
      <link>https://community.jmp.com/t5/Discussions/Identifying-duplicate-lists/m-p/567071#M77818</link>
      <description>&lt;P&gt;As it turns out, I was misinterpreting the function of Select Duplicate Rows. Since I had never used this function before, I thought it would select duplicate rows and the rows they were duplicating. The function as it works is exactly what I need.&amp;nbsp; I apologize for my delayed response.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2022 23:52:43 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Identifying-duplicate-lists/m-p/567071#M77818</guid>
      <dc:creator>StarfruitBob</dc:creator>
      <dc:date>2022-11-08T23:52:43Z</dc:date>
    </item>
  </channel>
</rss>

