<?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: How to realize If table BB, column C==&amp;quot;Y&amp;quot;, then table AA column D result will fill in &amp;quot;Y&amp;quot; too accordingly. Other all values no change in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-realize-If-table-BB-column-C-quot-Y-quot-then-table-AA/m-p/407168#M65717</link>
    <description>&lt;P&gt;There is also the option to use Loc but it might be a bit more difficult to understand than get rows where:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;AA:D[Loc(BB:C &amp;lt;&amp;lt; get as matrix, "F")] = "F";&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 05 Aug 2021 05:13:05 GMT</pubDate>
    <dc:creator>jthi</dc:creator>
    <dc:date>2021-08-05T05:13:05Z</dc:date>
    <item>
      <title>How to realize If table BB, column C=="Y", then table AA column D result will fill in "Y" too accordingly. Other all values no change</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-realize-If-table-BB-column-C-quot-Y-quot-then-table-AA/m-p/406006#M65609</link>
      <description>&lt;P&gt;Would you use 2 table as a example to show how to realize:&lt;/P&gt;&lt;P&gt;If table BB, column C=="Y", then table AA column D result will fill in "Y" too accordingly. Other all values no change.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My JMP version is V14. Thanks for your help&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2023 23:34:32 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-realize-If-table-BB-column-C-quot-Y-quot-then-table-AA/m-p/406006#M65609</guid>
      <dc:creator>Theresa</dc:creator>
      <dc:date>2023-06-10T23:34:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to realize If table BB, column C=="Y", then table AA column D result will fill in "Y" too accordingly. Other all values no change</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-realize-If-table-BB-column-C-quot-Y-quot-then-table-AA/m-p/406015#M65610</link>
      <description>&lt;P&gt;Here is a simple script that performs the task that you specified, or at least how I interpreted what you stated.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
bb = Open( "$sample_data/big class.jmp" );
// Change the Sex column name to "C" to match your example
bb:sex &amp;lt;&amp;lt; set name( "C" );

// Create a Blank data table with a column called "D"
aa = New Table( "Change", add rows( 40 ), New Column( "D", character ) );

// If a vlaue in row 2 for column C in table referenced by BB == "F",
// then set the same row value in data table AA column D to "F"
If( BB:C[2] == "F",
	AA:D[2] = "F"
);

// or using a different notation
If( BB[2,3] == "F",
	AA[2,1] = "F"
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 31 Jul 2021 02:29:54 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-realize-If-table-BB-column-C-quot-Y-quot-then-table-AA/m-p/406015#M65610</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2021-07-31T02:29:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to realize If table BB, column C=="Y", then table AA column D result will fill in "Y" too accordingly. Other all values no change</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-realize-If-table-BB-column-C-quot-Y-quot-then-table-AA/m-p/406789#M65689</link>
      <description>&lt;P&gt;Thanks for reply. It works.&lt;/P&gt;
&lt;P&gt;But i want realize that if any values in column C=="F", then column D in Table AA =F,&amp;nbsp; So what should i do? To remove the specific row like [2] information?&lt;/P&gt;
&lt;P&gt;I try below scripts, it is not work, thanks. Some times the data table is thousands of rows, i want to see a situation that is no specific rows called out, thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Pls help on this , thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;If( BB:C == "F", AA:D = "F" );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 04 Aug 2021 14:26:50 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-realize-If-table-BB-column-C-quot-Y-quot-then-table-AA/m-p/406789#M65689</guid>
      <dc:creator>Theresa</dc:creator>
      <dc:date>2021-08-04T14:26:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to realize If table BB, column C=="Y", then table AA column D result will fill in "Y" too accordingly. Other all values no change</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-realize-If-table-BB-column-C-quot-Y-quot-then-table-AA/m-p/406793#M65690</link>
      <description>&lt;P&gt;You could add For Each Row around the if statements. See Scripting Index and&amp;nbsp;&lt;A href="https://www.jmp.com/support/help/en/16.0/#page/jmp/conditional-and-logical-functions.shtml?os=win&amp;amp;source=application&amp;amp;utm_source=helpmenu&amp;amp;utm_medium=application#ww4890947" target="_blank" rel="noopener"&gt;For Each Row&lt;/A&gt;&amp;nbsp;for more details&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;For Each Row(
	If( BB:C == "F",
		AA:D = "F"
	);
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Aug 2021 08:13:07 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-realize-If-table-BB-column-C-quot-Y-quot-then-table-AA/m-p/406793#M65690</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2021-08-04T08:13:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to realize If table BB, column C=="Y", then table AA column D result will fill in "Y" too accordingly. Other all values no change</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-realize-If-table-BB-column-C-quot-Y-quot-then-table-AA/m-p/407130#M65712</link>
      <description>&lt;P&gt;Got it thanks&lt;/P&gt;</description>
      <pubDate>Wed, 04 Aug 2021 23:56:25 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-realize-If-table-BB-column-C-quot-Y-quot-then-table-AA/m-p/407130#M65712</guid>
      <dc:creator>Theresa</dc:creator>
      <dc:date>2021-08-04T23:56:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to realize If table BB, column C=="Y", then table AA column D result will fill in "Y" too accordingly. Other all values no change</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-realize-If-table-BB-column-C-quot-Y-quot-then-table-AA/m-p/407143#M65713</link>
      <description>&lt;P&gt;I believe the most efficient way to handle this is:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;AA:D[ BB &amp;lt;&amp;lt; Get Rows Where( BB:C == "F" ) ] = "F";&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 05 Aug 2021 00:34:35 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-realize-If-table-BB-column-C-quot-Y-quot-then-table-AA/m-p/407143#M65713</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2021-08-05T00:34:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to realize If table BB, column C=="Y", then table AA column D result will fill in "Y" too accordingly. Other all values no change</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-realize-If-table-BB-column-C-quot-Y-quot-then-table-AA/m-p/407168#M65717</link>
      <description>&lt;P&gt;There is also the option to use Loc but it might be a bit more difficult to understand than get rows where:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;AA:D[Loc(BB:C &amp;lt;&amp;lt; get as matrix, "F")] = "F";&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 05 Aug 2021 05:13:05 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-realize-If-table-BB-column-C-quot-Y-quot-then-table-AA/m-p/407168#M65717</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2021-08-05T05:13:05Z</dc:date>
    </item>
  </channel>
</rss>

