<?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: grouped Shuffle in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/grouped-Shuffle/m-p/928924#M108623</link>
    <description>&lt;P&gt;I was stuck with &lt;FONT face="courier new,courier"&gt;col shuffle()&lt;/FONT&gt;: &lt;BR /&gt;how can I convert the grouped index to a row index?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Ah, sure, use the grouped index as input for &lt;FONT face="courier new,courier"&gt;col at(idx, byGroup) -&amp;nbsp;&lt;/FONT&gt;&amp;nbsp;perfect match!&lt;BR /&gt;Nice example for the new functionality.&lt;/P&gt;</description>
    <pubDate>Wed, 04 Feb 2026 13:20:11 GMT</pubDate>
    <dc:creator>hogi</dc:creator>
    <dc:date>2026-02-04T13:20:11Z</dc:date>
    <item>
      <title>grouped Shuffle</title>
      <link>https://community.jmp.com/t5/Discussions/grouped-Shuffle/m-p/928905#M108618</link>
      <description>&lt;P&gt;In Big Class, students have to write a letter to another student with the same age (student A writing to student A is OK).&lt;BR /&gt;Which Colum Formula can I use to add &lt;FONT face="courier new,courier"&gt;name_2&lt;/FONT&gt;?&lt;/P&gt;
&lt;P&gt;The formula should be fast even with mio of rows.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Feb 2026 10:22:45 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/grouped-Shuffle/m-p/928905#M108618</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2026-02-04T10:22:45Z</dc:date>
    </item>
    <item>
      <title>Re: grouped Shuffle</title>
      <link>https://community.jmp.com/t5/Discussions/grouped-Shuffle/m-p/928917#M108620</link>
      <description>&lt;P&gt;workaround: &lt;STRONG&gt;dummy table - shuffle - join&lt;/STRONG&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default to Here(1);
dt1 = Open( "$SAMPLE_DATA/Big Class Families.jmp" );
New Column( "Rank1",	Formula( Col Rank( 1, :age ) ));
New Column( "Rank2",	Formula( Col Rank( random integer (100000), :age ) ));

New Column( "name 2", Character,	"Nominal",	Formula( :name ));
New Column( "age 2", Formula( :age ));

dt2 = dt1 &amp;lt;&amp;lt; Subset( All rows, Selected columns only( 0 ) );

dt1 &amp;lt;&amp;lt; Join(
	With( dt2 ),
	Match Flag( 0 ),
	Suppress main table formula evaluation( 0 ),
	Select( :name, :age ),
	SelectWith( :name 2, :age 2 ),
	By Matching Columns( :age = :age, :Rank1 = :Rank2 ),
	Drop multiples( 0, 0 ),
	Include Nonmatches( 1, 1 )
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_0-1770200737363.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/93019iFC2A5A75B631C1EA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_0-1770200737363.png" alt="hogi_0-1770200737363.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Feb 2026 10:25:43 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/grouped-Shuffle/m-p/928917#M108620</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2026-02-04T10:25:43Z</dc:date>
    </item>
    <item>
      <title>Re: grouped Shuffle</title>
      <link>https://community.jmp.com/t5/Discussions/grouped-Shuffle/m-p/928920#M108621</link>
      <description>&lt;P&gt;Workaround that doesn't work: Self join&lt;BR /&gt;why?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default to Here(1);
dt1 = Open( "$SAMPLE_DATA/Big Class Families.jmp" );
New Column( "Rank1",	Formula( Col Rank( 1, :age ) ));
New Column( "Rank2",	Formula( Col Rank( random integer (100000), :age ) ));

New Column( "name 2", Character,	"Nominal",	set each value( :name ));
New Column( "age 2", set each value ( :age ));

//dt2 = dt1 &amp;lt;&amp;lt; Subset( All rows, Selected columns only( 0 ) );

dt1 &amp;lt;&amp;lt; Join(
	With( dt1 ),
	Select( :name, :age ),
	SelectWith( :name 2, :age 2 ),
	By Matching Columns( :age = :age 2, :Rank1 = :Rank2 ),
	Drop multiples( 0, 0 ),
	Include Nonmatches( 1, 1 )
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_2-1770201078373.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/93021iB015D629987AF7D8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_2-1770201078373.png" alt="hogi_2-1770201078373.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Feb 2026 10:31:32 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/grouped-Shuffle/m-p/928920#M108621</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2026-02-04T10:31:32Z</dc:date>
    </item>
    <item>
      <title>Re: grouped Shuffle</title>
      <link>https://community.jmp.com/t5/Discussions/grouped-Shuffle/m-p/928922#M108622</link>
      <description>&lt;P&gt;Combine Col At() and Col Shuffle()&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

dt = open("$SAMPLE_DATA/Big Class.jmp");

new_col = dt &amp;lt;&amp;lt; New Column("Shuffle",
	Character,
	Nominal,
	Formula(Col At(:name, Col Shuffle(:age), :age))
);
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I didn't verify the results or test the speed&lt;/P&gt;</description>
      <pubDate>Wed, 04 Feb 2026 10:42:28 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/grouped-Shuffle/m-p/928922#M108622</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2026-02-04T10:42:28Z</dc:date>
    </item>
    <item>
      <title>Re: grouped Shuffle</title>
      <link>https://community.jmp.com/t5/Discussions/grouped-Shuffle/m-p/928924#M108623</link>
      <description>&lt;P&gt;I was stuck with &lt;FONT face="courier new,courier"&gt;col shuffle()&lt;/FONT&gt;: &lt;BR /&gt;how can I convert the grouped index to a row index?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Ah, sure, use the grouped index as input for &lt;FONT face="courier new,courier"&gt;col at(idx, byGroup) -&amp;nbsp;&lt;/FONT&gt;&amp;nbsp;perfect match!&lt;BR /&gt;Nice example for the new functionality.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Feb 2026 13:20:11 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/grouped-Shuffle/m-p/928924#M108623</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2026-02-04T13:20:11Z</dc:date>
    </item>
  </channel>
</rss>

