<?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: JSL: Row states assignment in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/JSL-Row-states-assignment/m-p/34982#M20655</link>
    <description>&lt;P&gt;Here is a sample script working on the Big Class sample data table.&amp;nbsp; I think it will give you an idea on how to do what you asked&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;names default to here(1);
dt=open("$SAMPLE_DATA/big class.jmp");

// To color the first 20 rows, the rows outside of that
// limit need to be excluded from the coloring
dt &amp;lt;&amp;lt; select where(Row()&amp;gt;20);
dt &amp;lt;&amp;lt; hide and exclude(1);

dt &amp;lt;&amp;lt; color or mark by column("sex", marker theme(hollow));
dt &amp;lt;&amp;lt; color or mark by column("age");
dt &amp;lt;&amp;lt; hide and exclude(0);
dt &amp;lt;&amp;lt; clear select;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 26 Jan 2017 00:33:14 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2017-01-26T00:33:14Z</dc:date>
    <item>
      <title>JSL: Row states assignment</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-Row-states-assignment/m-p/34979#M20654</link>
      <description>&lt;P&gt;I am still new to the row state idea and implementation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone tell me the syntax for selecting the first 50 rows of a data table and applying radom markers(preferably variety of markers and colors) and colors as row states ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I really appreciate it. Thank you&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2017 22:17:50 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-Row-states-assignment/m-p/34979#M20654</guid>
      <dc:creator>vishwasanj</dc:creator>
      <dc:date>2017-01-25T22:17:50Z</dc:date>
    </item>
    <item>
      <title>Re: JSL: Row states assignment</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-Row-states-assignment/m-p/34982#M20655</link>
      <description>&lt;P&gt;Here is a sample script working on the Big Class sample data table.&amp;nbsp; I think it will give you an idea on how to do what you asked&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;names default to here(1);
dt=open("$SAMPLE_DATA/big class.jmp");

// To color the first 20 rows, the rows outside of that
// limit need to be excluded from the coloring
dt &amp;lt;&amp;lt; select where(Row()&amp;gt;20);
dt &amp;lt;&amp;lt; hide and exclude(1);

dt &amp;lt;&amp;lt; color or mark by column("sex", marker theme(hollow));
dt &amp;lt;&amp;lt; color or mark by column("age");
dt &amp;lt;&amp;lt; hide and exclude(0);
dt &amp;lt;&amp;lt; clear select;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 26 Jan 2017 00:33:14 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-Row-states-assignment/m-p/34982#M20655</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2017-01-26T00:33:14Z</dc:date>
    </item>
    <item>
      <title>Re: JSL: Row states assignment</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-Row-states-assignment/m-p/35005#M20664</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open( "$sample_data/big class.jmp" );
// http://www.jmp.com/support/help/Row_State_Functions.shtml
dt &amp;lt;&amp;lt; setrowstates(
	J( N Rows( dt ), 1/*cols*/,  
		Random Integer( 0, 15 ) * 16 // marker bits 4-7
		+ Random Integer( 0, 127 ) * 256 // color bits 8-14
	)
);
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Data table with row states set to random colors and markers" style="width: 846px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/4932i59D7F07C984326BB/image-size/large?v=v2&amp;amp;px=999" role="button" title="random.PNG" alt="Data table with row states set to random colors and markers" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Data table with row states set to random colors and markers&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2017 20:43:48 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-Row-states-assignment/m-p/35005#M20664</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2017-01-26T20:43:48Z</dc:date>
    </item>
  </channel>
</rss>

