<?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: &amp;lt;&amp;lt; Get Values from a Column without  subsetting each set of row selection. in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/lt-lt-Get-Values-from-a-Column-without-subsetting-each-set-of/m-p/9524#M9351</link>
    <description>&lt;P&gt;You can get the value of a column for a given row by subscripting to that row.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt=open("$SAMPLE_DATA\Big Class.jmp");
:name[1];&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Will return "Katie" which is the name in the first row.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Likewise, you can use a matrix for the subscript.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt=open("$SAMPLE_DATA\Big Class.jmp");
:name[[2,3,4]];&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;That returns:&amp;nbsp;&lt;/P&gt;
&lt;PRE class="jive_text_macro jive_macro_quote"&gt;&lt;STRONG&gt;{"LOUISE", "JANE", "JACLYN"}&lt;/STRONG&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;You can probably see where this is headed. The &amp;lt;&amp;lt;Get Selected Rows message returns a matrix, so you can use that to subscript directly to the column.&lt;/SPAN&gt;&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;get selected rows;
:name[rows];&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 07 Sep 2017 18:10:00 GMT</pubDate>
    <dc:creator>Jeff_Perkinson</dc:creator>
    <dc:date>2017-09-07T18:10:00Z</dc:date>
    <item>
      <title>&lt;&lt; Get Values from a Column without  subsetting each set of row selection.</title>
      <link>https://community.jmp.com/t5/Discussions/lt-lt-Get-Values-from-a-Column-without-subsetting-each-set-of/m-p/9523#M9350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So, I have a big dataset. Currently I am selecting few rows for each condition, subsetting the data and run&amp;nbsp; &amp;lt;&amp;lt; get values (im My JSL script)&amp;nbsp; to move data to defined LIST.&amp;nbsp; This process is taking significant time, because as i mentioned dataset is huge.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to know, if there is a way to&amp;nbsp; &amp;lt;&amp;lt; get values from a column for the selected rows without doing subset everytime. \&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or I have to subset every time to&amp;nbsp; &amp;lt;&amp;lt; get values from&amp;nbsp; desired ROW\Column. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2014 23:52:24 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/lt-lt-Get-Values-from-a-Column-without-subsetting-each-set-of/m-p/9523#M9350</guid>
      <dc:creator>jump</dc:creator>
      <dc:date>2014-09-15T23:52:24Z</dc:date>
    </item>
    <item>
      <title>Re: &lt;&lt; Get Values from a Column without  subsetting each set of row selection.</title>
      <link>https://community.jmp.com/t5/Discussions/lt-lt-Get-Values-from-a-Column-without-subsetting-each-set-of/m-p/9524#M9351</link>
      <description>&lt;P&gt;You can get the value of a column for a given row by subscripting to that row.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt=open("$SAMPLE_DATA\Big Class.jmp");
:name[1];&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Will return "Katie" which is the name in the first row.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Likewise, you can use a matrix for the subscript.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt=open("$SAMPLE_DATA\Big Class.jmp");
:name[[2,3,4]];&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;That returns:&amp;nbsp;&lt;/P&gt;
&lt;PRE class="jive_text_macro jive_macro_quote"&gt;&lt;STRONG&gt;{"LOUISE", "JANE", "JACLYN"}&lt;/STRONG&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;You can probably see where this is headed. The &amp;lt;&amp;lt;Get Selected Rows message returns a matrix, so you can use that to subscript directly to the column.&lt;/SPAN&gt;&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;get selected rows;
:name[rows];&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Sep 2017 18:10:00 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/lt-lt-Get-Values-from-a-Column-without-subsetting-each-set-of/m-p/9524#M9351</guid>
      <dc:creator>Jeff_Perkinson</dc:creator>
      <dc:date>2017-09-07T18:10:00Z</dc:date>
    </item>
    <item>
      <title>Re: &lt;&lt; Get Values from a Column without  subsetting each set of row selection.</title>
      <link>https://community.jmp.com/t5/Discussions/lt-lt-Get-Values-from-a-Column-without-subsetting-each-set-of/m-p/9525#M9352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, thanks you. will try that. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Sep 2014 03:23:51 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/lt-lt-Get-Values-from-a-Column-without-subsetting-each-set-of/m-p/9525#M9352</guid>
      <dc:creator>jump</dc:creator>
      <dc:date>2014-09-16T03:23:51Z</dc:date>
    </item>
  </channel>
</rss>

