<?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: JSL Summarize Command Creates 2 lists, one that behaves &amp;quot;normally&amp;quot;, the other not. in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/JSL-Summarize-Command-Creates-2-lists-one-that-behaves-quot/m-p/6861#M6855</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah, as usual, the devil is in the details.&amp;nbsp; Thanks for the description and alternatives.&amp;nbsp; That helped me understand the difference between a list and matrix a lot better.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Jun 2013 21:45:00 GMT</pubDate>
    <dc:creator>terapin</dc:creator>
    <dc:date>2013-06-04T21:45:00Z</dc:date>
    <item>
      <title>JSL Summarize Command Creates 2 lists, one that behaves "normally", the other not.</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-Summarize-Command-Creates-2-lists-one-that-behaves-quot/m-p/6859#M6853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Folks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code below creates a data table and then creates two lists in the Summarize command, one for the By variable (date_list) and one for the Max variable (data_list).&amp;nbsp; The date_list is fully accessible using standard List commands (see code at bottom), but the data_list isn't a list as far as Is List (data_list) is concerned.&amp;nbsp; In addition, I can't count the number of items in the list, nor Show the location of a specific value in the data_list.&amp;nbsp; Is this normal behavior for a list or am I missing something subtle here about lists?&amp;nbsp; Any help would be appreciated.&amp;nbsp; Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clear Log();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Names Default To Here(1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dt1 = New Table( "Test",&lt;/P&gt;&lt;P&gt;&amp;nbsp; Add Rows( 20 ),&lt;/P&gt;&lt;P&gt;&amp;nbsp; New Column( "Date",&lt;/P&gt;&lt;P&gt;&amp;nbsp; Numeric,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Continuous,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Format( "m/d/y h:m", 10 ),&lt;/P&gt;&lt;P&gt;&amp;nbsp; Input Format( "m/d/y h:m" ),&lt;/P&gt;&lt;P&gt;&amp;nbsp; Set Values(&lt;/P&gt;&lt;P&gt;&amp;nbsp; [1767245800, 1771173900, 1805155800, 1809197400, 1843086800, 1838161000, 1889049900, 1893293200,&lt;/P&gt;&lt;P&gt;&amp;nbsp; 1896320800, 1900281600, 1950766400, 1955499200, 1957751200, 1964247600, 1990396800, 1995976400,&lt;/P&gt;&lt;P&gt;&amp;nbsp; 2023788000, 2029549600, 2051488600, 2056959000]&lt;/P&gt;&lt;P&gt;&amp;nbsp; )&lt;/P&gt;&lt;P&gt;&amp;nbsp; ),&lt;/P&gt;&lt;P&gt;&amp;nbsp; New Column( "Data",&lt;/P&gt;&lt;P&gt;&amp;nbsp; Numeric,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Continuous,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Format( "Best", 12 ),&lt;/P&gt;&lt;P&gt;&amp;nbsp; Set Values( [34, 45, ., 56, 99, 67, 12, 78, 53, 89, 77, 90, ., 12, 73, 23, 12, 34, 6, 45] )&lt;/P&gt;&lt;P&gt;&amp;nbsp; ),&lt;/P&gt;&lt;P&gt;&amp;nbsp; New Column( "Year", Numeric, Continuous, Format( "Best", 12 ), Formula( Year( :Date ) ), Lock( 1 ) ),&lt;/P&gt;&lt;P&gt;&amp;nbsp; New Column( "Hour", Numeric, Continuous, Format( "Best", 12 ), Formula( Hour( :Date ) ), Lock( 1 ) )&lt;/P&gt;&lt;P&gt;);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wait( 2 );&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// Get the highest growth for each day&lt;/P&gt;&lt;P&gt;Summarize( date_list = by( :Date ), data_list = Max( :Data ) );&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is List( date_list );&lt;/P&gt;&lt;P&gt;N Items ( date_list );&lt;/P&gt;&lt;P&gt;Show( Loc( date_list, "03/15/1961 12:10 AM" ));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is List( data_list );&lt;/P&gt;&lt;P&gt;N Items ( data_list );&lt;/P&gt;&lt;P&gt;Show( Loc( data_list, 45 ));&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Jun 2013 16:20:52 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-Summarize-Command-Creates-2-lists-one-that-behaves-quot/m-p/6859#M6853</guid>
      <dc:creator>terapin</dc:creator>
      <dc:date>2013-06-04T16:20:52Z</dc:date>
    </item>
    <item>
      <title>Re: JSL Summarize Command Creates 2 lists, one that behaves "normally", the other not.</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-Summarize-Command-Creates-2-lists-one-that-behaves-quot/m-p/6860#M6854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's only the by() result of summarize that is a list. The numerical output is typically a matrix (i.e. a vector). Use matrix commands or convert the matrix to a list.&lt;/P&gt;&lt;P&gt;Compare these alternatives:&lt;/P&gt;&lt;P style="font-size: 12px; font-family: Courier;"&gt;&lt;SPAN style="color: #032ce4;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: Courier;"&gt;&lt;SPAN style="color: #032ce4;"&gt;Is Matrix&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt; data_list &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #011993;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: Courier;"&gt;&lt;SPAN style="color: #032ce4;"&gt;N Row&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt; data_list &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #011993;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: Courier;"&gt;&lt;SPAN style="color: #032ce4;"&gt;Show( Loc&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt; data_list &lt;SPAN style="color: #011993;"&gt;==&lt;/SPAN&gt; &lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;45&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;STRONG&gt;))&lt;/STRONG&gt;&lt;SPAN style="color: #011993;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #011993;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: Courier;"&gt;&lt;SPAN style="color: #032ce4;"&gt;Is List&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt; data_list &lt;SPAN style="color: #011993;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: #032ce4;"&gt;As List&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt; data_list &lt;STRONG&gt;)&lt;/STRONG&gt; &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #011993;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: Courier;"&gt;&lt;SPAN style="color: #032ce4;"&gt;N Items&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt; data_list &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #011993;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: Courier;"&gt;&lt;SPAN style="color: #032ce4;"&gt;Show&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt; &lt;SPAN style="color: #032ce4;"&gt;Loc&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt; data_list&lt;SPAN style="color: #011993;"&gt;,&lt;/SPAN&gt; &lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;45&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;STRONG&gt;)&lt;/STRONG&gt; &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #011993;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Jun 2013 17:06:17 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-Summarize-Command-Creates-2-lists-one-that-behaves-quot/m-p/6860#M6854</guid>
      <dc:creator>ms</dc:creator>
      <dc:date>2013-06-04T17:06:17Z</dc:date>
    </item>
    <item>
      <title>Re: JSL Summarize Command Creates 2 lists, one that behaves "normally", the other not.</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-Summarize-Command-Creates-2-lists-one-that-behaves-quot/m-p/6861#M6855</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah, as usual, the devil is in the details.&amp;nbsp; Thanks for the description and alternatives.&amp;nbsp; That helped me understand the difference between a list and matrix a lot better.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Jun 2013 21:45:00 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-Summarize-Command-Creates-2-lists-one-that-behaves-quot/m-p/6861#M6855</guid>
      <dc:creator>terapin</dc:creator>
      <dc:date>2013-06-04T21:45:00Z</dc:date>
    </item>
  </channel>
</rss>

