<?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: For loop -- delete row and formula in list in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/For-loop-delete-row-and-formula-in-list/m-p/546472#M76424</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;col_formula = {"Column1", "Column2"};
col2_row = {"Column3", "Column4"};

// This will delete the formula
For( i = 1, i &amp;lt;= N Items( col_formula ), i++,
	Column( col_formula[i] ) &amp;lt;&amp;lt; Delete Formula; //delete formula
);

// You cannot delete a row within a given column.  JMP always has
// an equal number of rows for all columns.
// You can delete a row, but it will delete the row for all columns.

current data table() &amp;lt;&amp;lt; delete rows( i );

// If you want to remove the value for a given row within a column,
// you can set the value to a missing value


&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 20 Sep 2022 02:17:59 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2022-09-20T02:17:59Z</dc:date>
    <item>
      <title>For loop -- delete row and formula in list</title>
      <link>https://community.jmp.com/t5/Discussions/For-loop-delete-row-and-formula-in-list/m-p/546421#M76422</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;How can I iterate a delete formula then delete column using for loop in list?&lt;/P&gt;
&lt;P&gt;Something like this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;col_formula = {"Column1", "Column2" };

col2_row = {"Column3", "Column4"};

For( i = 1, i &amp;lt;= N Items ( col_formula ), i++,
col_formula (i) &amp;lt;&amp;lt; Delete Formula //delete formula

col2_row (i) &amp;lt;&amp;lt; Delete Row//delete row
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 10 Jun 2023 23:54:23 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/For-loop-delete-row-and-formula-in-list/m-p/546421#M76422</guid>
      <dc:creator>UserID16644</dc:creator>
      <dc:date>2023-06-10T23:54:23Z</dc:date>
    </item>
    <item>
      <title>Re: For loop -- delete row and formula in list</title>
      <link>https://community.jmp.com/t5/Discussions/For-loop-delete-row-and-formula-in-list/m-p/546441#M76423</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I thick this should be work expect your column format might incorrect.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;cols={":col_1",":col_2"};&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Bank Loan.jmp" );
:Time &amp;lt;&amp;lt; Delete Formula;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 20 Sep 2022 00:00:50 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/For-loop-delete-row-and-formula-in-list/m-p/546441#M76423</guid>
      <dc:creator>frank_wang</dc:creator>
      <dc:date>2022-09-20T00:00:50Z</dc:date>
    </item>
    <item>
      <title>Re: For loop -- delete row and formula in list</title>
      <link>https://community.jmp.com/t5/Discussions/For-loop-delete-row-and-formula-in-list/m-p/546472#M76424</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;col_formula = {"Column1", "Column2"};
col2_row = {"Column3", "Column4"};

// This will delete the formula
For( i = 1, i &amp;lt;= N Items( col_formula ), i++,
	Column( col_formula[i] ) &amp;lt;&amp;lt; Delete Formula; //delete formula
);

// You cannot delete a row within a given column.  JMP always has
// an equal number of rows for all columns.
// You can delete a row, but it will delete the row for all columns.

current data table() &amp;lt;&amp;lt; delete rows( i );

// If you want to remove the value for a given row within a column,
// you can set the value to a missing value


&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Sep 2022 02:17:59 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/For-loop-delete-row-and-formula-in-list/m-p/546472#M76424</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2022-09-20T02:17:59Z</dc:date>
    </item>
  </channel>
</rss>

