<?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: Creating a subset of selected Rows in a datatable in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Creating-a-subset-of-selected-Rows-in-a-datatable/m-p/39171#M22901</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you explain what is the returning of Selected Rows(1), and Selected Columns(0). without that script does not work.&lt;/P&gt;</description>
    <pubDate>Fri, 12 May 2017 02:13:04 GMT</pubDate>
    <dc:creator>FrankBot0211</dc:creator>
    <dc:date>2017-05-12T02:13:04Z</dc:date>
    <item>
      <title>Creating a subset of selected Rows in a datatable</title>
      <link>https://community.jmp.com/t5/Discussions/Creating-a-subset-of-selected-Rows-in-a-datatable/m-p/6495#M6489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All, &lt;/P&gt;&lt;P&gt;I'm fairly new to JSL, and am hoping to get some assistance with an issue I've run into.&lt;/P&gt;&lt;P&gt;I'm trying to create a subset of selected rows (with all columns preserved) from a datatable, but in spite of trying just about everything I can find on these forums, in the JMP scripting guide, and in "Jump into JMP Scripting", I haven't been able to get this to happen. &lt;/P&gt;&lt;P&gt;The closest I've come is with the following, which creates the subset table, but includes all rows rather than just the ones I've selected (and the rows I want ARE selected in the main table) and also eliminates some columns. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: Courier;"&gt;&lt;SPAN style="color: #0d37e0;"&gt;data table&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;SPAN style="color: #932891;"&gt;"JoinedOutput"&lt;/SPAN&gt;&lt;STRONG&gt;)&lt;/STRONG&gt; &lt;SPAN style="color: #052090;"&gt;&amp;lt;&amp;lt;&lt;/SPAN&gt;Select Where &lt;STRONG&gt;(&lt;/STRONG&gt;Dilution&lt;SPAN style="color: #052090;"&gt;==&lt;/SPAN&gt;&lt;SPAN style="color: #019192;"&gt;&lt;STRONG&gt;0.00005&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #052090;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: Courier;"&gt;selRows &lt;SPAN style="color: #052090;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: #0d37e0;"&gt;N row&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt; dt &lt;SPAN style="color: #052090;"&gt;&amp;lt;&amp;lt;&lt;/SPAN&gt; Get Selected Rows &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #052090;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: Courier;"&gt;dt &lt;SPAN style="color: #052090;"&gt;&amp;lt;&amp;lt;&lt;/SPAN&gt; Subset&lt;STRONG&gt;(&lt;/STRONG&gt; output table name&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;SPAN style="color: #932891;"&gt;"JoinedSubset"&lt;/SPAN&gt;&lt;STRONG&gt;))&lt;/STRONG&gt;&lt;SPAN style="color: #052090;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: Courier;"&gt;&lt;SPAN style="color: #052090;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;What are people's thoughts? Any and all help is much appreciated!&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Apr 2013 16:01:16 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Creating-a-subset-of-selected-Rows-in-a-datatable/m-p/6495#M6489</guid>
      <dc:creator>juliet</dc:creator>
      <dc:date>2013-04-03T16:01:16Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a subset of selected Rows in a datatable</title>
      <link>https://community.jmp.com/t5/Discussions/Creating-a-subset-of-selected-Rows-in-a-datatable/m-p/6496#M6490</link>
      <description>&lt;P&gt;It should work. But are you sure that &lt;EM&gt;dt&lt;/EM&gt; really is the data table "JoinedOutput" and not another table (perhaps the original table before joining...)?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, Subset() may produce more predictable results with some optional arguments. Try something like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; color: #801392;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Data Table( "JoinedOutput" );
dt &amp;lt;&amp;lt; Select Where( :Dilution == 0.00005 );
dt &amp;lt;&amp;lt; Subset( Output Table( "JoinedSubset" ), Selected Rows( 1 ), selected columns( 0 ) );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jun 2018 15:15:22 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Creating-a-subset-of-selected-Rows-in-a-datatable/m-p/6496#M6490</guid>
      <dc:creator>ms</dc:creator>
      <dc:date>2018-06-13T15:15:22Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a subset of selected Rows in a datatable</title>
      <link>https://community.jmp.com/t5/Discussions/Creating-a-subset-of-selected-Rows-in-a-datatable/m-p/6497#M6491</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's interesting that you should ask that question, because at an earlier point in my script i have specified:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: Courier; color: #932891;"&gt;&lt;SPAN style="color: #000000;"&gt;dt&lt;/SPAN&gt;&lt;SPAN style="color: #052090;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0d37e0;"&gt;data table&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;/SPAN&gt;"JAT-00047 Day 0-45 concat"&lt;SPAN style="color: #000000;"&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #052090;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: Courier; color: #932891;"&gt;&lt;SPAN style="color: #052090;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;which is the initial table used in my analysis. The subset step is coming several steps later, on the 3rd table used in the analysis. My understanding was that by specifying:&lt;/P&gt;&lt;P&gt;data table ("JoinedOutput")&lt;/P&gt;&lt;P&gt;I could specify that I wanted a subset of this table, but now I'm guessing this is wrong?&lt;/P&gt;&lt;P&gt;Will I encounter a problem using the dt = Data Table ( "JoinedOutput" ) here if I've used it as shown above earlier in the script?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Apr 2013 18:02:59 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Creating-a-subset-of-selected-Rows-in-a-datatable/m-p/6497#M6491</guid>
      <dc:creator>juliet</dc:creator>
      <dc:date>2013-04-03T18:02:59Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a subset of selected Rows in a datatable</title>
      <link>https://community.jmp.com/t5/Discussions/Creating-a-subset-of-selected-Rows-in-a-datatable/m-p/6498#M6492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The safest thing is to have a separate variable for each table.&amp;nbsp; Avoids confusion that way.&amp;nbsp; Referring to a table via &lt;STRONG&gt;data table("Table title")&lt;/STRONG&gt; works but is a little more verbose.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Apr 2013 18:23:06 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Creating-a-subset-of-selected-Rows-in-a-datatable/m-p/6498#M6492</guid>
      <dc:creator>pmroz</dc:creator>
      <dc:date>2013-04-03T18:23:06Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a subset of selected Rows in a datatable</title>
      <link>https://community.jmp.com/t5/Discussions/Creating-a-subset-of-selected-Rows-in-a-datatable/m-p/39171#M22901</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you explain what is the returning of Selected Rows(1), and Selected Columns(0). without that script does not work.&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2017 02:13:04 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Creating-a-subset-of-selected-Rows-in-a-datatable/m-p/39171#M22901</guid>
      <dc:creator>FrankBot0211</dc:creator>
      <dc:date>2017-05-12T02:13:04Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a subset of selected Rows in a datatable</title>
      <link>https://community.jmp.com/t5/Discussions/Creating-a-subset-of-selected-Rows-in-a-datatable/m-p/39190#M22910</link>
      <description>&lt;P&gt;Subset performs the same task as the Subset option on Tables menu of JMP. &amp;nbsp;If you look at that option you will see that when you subset you have to indicate whether or not to use all rows and columns, or only selected rows and/or columns.&lt;/P&gt;
&lt;P&gt;The arguments are providing the same information: Selected Rows(1) says that you want to use only the selected rows; Selected Columns(0) means you don't want to use selected columns (by implication, you want to use all columns). &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2017 10:33:13 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Creating-a-subset-of-selected-Rows-in-a-datatable/m-p/39190#M22910</guid>
      <dc:creator>David_Burnham</dc:creator>
      <dc:date>2017-05-12T10:33:13Z</dc:date>
    </item>
  </channel>
</rss>

