<?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 delete rows in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/delete-rows/m-p/242401#M47874</link>
    <description>&lt;P&gt;I have several data sets from excel. My question is that how do i delete the last two rows using scripting regardless of how many number of rows -- i only need to remove the last two rows since its of no use.&lt;/P&gt;</description>
    <pubDate>Thu, 23 Jan 2020 01:23:28 GMT</pubDate>
    <dc:creator>skyzvoir0001</dc:creator>
    <dc:date>2020-01-23T01:23:28Z</dc:date>
    <item>
      <title>delete rows</title>
      <link>https://community.jmp.com/t5/Discussions/delete-rows/m-p/242401#M47874</link>
      <description>&lt;P&gt;I have several data sets from excel. My question is that how do i delete the last two rows using scripting regardless of how many number of rows -- i only need to remove the last two rows since its of no use.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jan 2020 01:23:28 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/delete-rows/m-p/242401#M47874</guid>
      <dc:creator>skyzvoir0001</dc:creator>
      <dc:date>2020-01-23T01:23:28Z</dc:date>
    </item>
    <item>
      <title>Re: delete rows</title>
      <link>https://community.jmp.com/t5/Discussions/delete-rows/m-p/242414#M47877</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;names default to here(1);
dt = current data table();

dt &amp;lt;&amp;lt; select where(row() &amp;gt;= N Rows(dt) - 1;
dt &amp;lt;&amp;lt; delete rows;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The above script should do the trick.&amp;nbsp; Just make the data table of interest your active data table(click on the table), and then run the script.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jan 2020 04:30:21 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/delete-rows/m-p/242414#M47877</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-01-23T04:30:21Z</dc:date>
    </item>
  </channel>
</rss>

