<?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 pass data from Select Where to array in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-pass-data-from-Select-Where-to-array/m-p/504159#M73624</link>
    <description>&lt;P&gt;Could you provide clear example about what you want to do? The linked topic doesn't seem to have Test, Age or Class mentioned anywhere. You want to select rows based on something and then get values based on that selection on some columns? &lt;/P&gt;</description>
    <pubDate>Thu, 09 Jun 2022 13:54:32 GMT</pubDate>
    <dc:creator>jthi</dc:creator>
    <dc:date>2022-06-09T13:54:32Z</dc:date>
    <item>
      <title>How to pass data from Select Where to array</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-pass-data-from-Select-Where-to-array/m-p/504129#M73623</link>
      <description>&lt;P&gt;Hi, I'm trying to adapt this solution:&amp;nbsp;&lt;A href="https://community.jmp.com/t5/Discussions/Create-a-associative-array-from-unique-selected-rows-and-row/td-p/257860" target="_blank"&gt;https://community.jmp.com/t5/Discussions/Create-a-associative-array-from-unique-selected-rows-and-row/td-p/257860&lt;/A&gt;&lt;/P&gt;&lt;P&gt;using Select Where instead of Select Rows.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt1 &amp;lt;&amp;lt; Select Where( :Test == "Fail" );&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I would like to create an array of the columns Age and Class for all the selected rows. Selected Rows doesn't seem to work and the Script Index Guide isn't clear on what object Select Where returns.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 17:00:49 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-pass-data-from-Select-Where-to-array/m-p/504129#M73623</guid>
      <dc:creator>Agustin</dc:creator>
      <dc:date>2023-06-09T17:00:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass data from Select Where to array</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-pass-data-from-Select-Where-to-array/m-p/504159#M73624</link>
      <description>&lt;P&gt;Could you provide clear example about what you want to do? The linked topic doesn't seem to have Test, Age or Class mentioned anywhere. You want to select rows based on something and then get values based on that selection on some columns? &lt;/P&gt;</description>
      <pubDate>Thu, 09 Jun 2022 13:54:32 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-pass-data-from-Select-Where-to-array/m-p/504159#M73624</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2022-06-09T13:54:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass data from Select Where to array</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-pass-data-from-Select-Where-to-array/m-p/504195#M73625</link>
      <description>&lt;P&gt;Yes, so when I use:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt1 &amp;lt;&amp;lt; Select Where( :Test == "Fail" );&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;In the data table these rows appear as selected (highlighted in blue), the data table has columns Age and Class so I would like to create an array in pairs for all the selected rows.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then I want to use the array in pairs to hide and exclude all rows where Age and Class are equal to one of the pairs.&lt;/P&gt;&lt;P&gt;e.g. if one of the rows where Test = Fail has Age = 14 and Class = 2, I would want to store the values ( (14,2), ... , ) in an array and then all rows where Age = 14 and Class = 2&amp;nbsp; I want to hide and exclude.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jun 2022 14:12:22 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-pass-data-from-Select-Where-to-array/m-p/504195#M73625</guid>
      <dc:creator>Agustin</dc:creator>
      <dc:date>2022-06-09T14:12:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass data from Select Where to array</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-pass-data-from-Select-Where-to-array/m-p/504201#M73626</link>
      <description>&lt;P&gt;maybe something like this&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open( "$sample_data/big class.jmp" );
rows = dt &amp;lt;&amp;lt; getrowswhere( 13 &amp;lt;= age &amp;lt;= 15 );
matrix = dt[rows, {height, weight}];&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I don't think &amp;lt;&amp;lt;SelectWhere returns a value; it makes rows in the table selected. Other messages, like &amp;lt;&amp;lt;deleteRows, can operate on the current selection.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jun 2022 14:15:11 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-pass-data-from-Select-Where-to-array/m-p/504201#M73626</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2022-06-09T14:15:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass data from Select Where to array</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-pass-data-from-Select-Where-to-array/m-p/504207#M73627</link>
      <description>&lt;P&gt;Thank you that works. I find the documentation quite difficult to navigate.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jun 2022 14:19:33 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-pass-data-from-Select-Where-to-array/m-p/504207#M73627</guid>
      <dc:creator>Agustin</dc:creator>
      <dc:date>2022-06-09T14:19:33Z</dc:date>
    </item>
  </channel>
</rss>

