<?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 help with tables in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/help-with-tables/m-p/249015#M48899</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = current data table();
dt &amp;lt;&amp;lt; subset(by(:p20000), All Rows, All Columns);

//When I subset dt by :p20000, it outputs atmost 3 data tables ‘p20000=1000’, ‘p20000=1001’, ‘p20000=1002’.
//What I do next is to check if such dt exists 

exist= Try(Data Table("P20000=1002");tableExist = 1,tableExist = 0);

);&lt;BR /&gt;&lt;BR /&gt;//if&amp;nbsp;tab_1002,&lt;BR /&gt;tab_1002=expr(insery my long script here);&lt;BR /&gt;//if&amp;nbsp;tab_1001,&lt;BR /&gt;tab_1001=expr(insert&amp;nbsp;script&amp;nbsp;here);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;So if p20000=1002 exists, I will use the expression tab_1002,&lt;BR /&gt;and if p2000=1001 exists, I will use the expression tab_1001.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However there are some cases where when subsetting, only data table p20000=1000 exists.&lt;/P&gt;&lt;P&gt;Im confused how to do these with conditions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 25 Feb 2020 10:11:41 GMT</pubDate>
    <dc:creator>viskovicz00012</dc:creator>
    <dc:date>2020-02-25T10:11:41Z</dc:date>
    <item>
      <title>help with tables</title>
      <link>https://community.jmp.com/t5/Discussions/help-with-tables/m-p/249015#M48899</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = current data table();
dt &amp;lt;&amp;lt; subset(by(:p20000), All Rows, All Columns);

//When I subset dt by :p20000, it outputs atmost 3 data tables ‘p20000=1000’, ‘p20000=1001’, ‘p20000=1002’.
//What I do next is to check if such dt exists 

exist= Try(Data Table("P20000=1002");tableExist = 1,tableExist = 0);

);&lt;BR /&gt;&lt;BR /&gt;//if&amp;nbsp;tab_1002,&lt;BR /&gt;tab_1002=expr(insery my long script here);&lt;BR /&gt;//if&amp;nbsp;tab_1001,&lt;BR /&gt;tab_1001=expr(insert&amp;nbsp;script&amp;nbsp;here);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;So if p20000=1002 exists, I will use the expression tab_1002,&lt;BR /&gt;and if p2000=1001 exists, I will use the expression tab_1001.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However there are some cases where when subsetting, only data table p20000=1000 exists.&lt;/P&gt;&lt;P&gt;Im confused how to do these with conditions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Feb 2020 10:11:41 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/help-with-tables/m-p/249015#M48899</guid>
      <dc:creator>viskovicz00012</dc:creator>
      <dc:date>2020-02-25T10:11:41Z</dc:date>
    </item>
    <item>
      <title>Re: help with tables</title>
      <link>https://community.jmp.com/t5/Discussions/help-with-tables/m-p/249021#M48901</link>
      <description>&lt;P&gt;You may be able to use this kind of approach:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;NamesDefaultToHere(1);

dt = Open("$SAMPLE_DATA/Big Class.jmp");
dtList = dt &amp;lt;&amp;lt; subset(by(:sex), All Rows, All Columns);
for(t=1, t&amp;lt;=NItems(dtList), t++, Print(dtList[t] &amp;lt;&amp;lt; getName));&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 25 Feb 2020 11:10:44 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/help-with-tables/m-p/249021#M48901</guid>
      <dc:creator>ian_jmp</dc:creator>
      <dc:date>2020-02-25T11:10:44Z</dc:date>
    </item>
  </channel>
</rss>

