<?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: Summarize Function in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Summarize-Function/m-p/659329#M84857</link>
    <description>&lt;P&gt;Interesting that &lt;FONT face="courier new,courier"&gt;summarize&lt;/FONT&gt; is not able to count non-numeric entries.&lt;/P&gt;&lt;P&gt;Maybe intentionally - to make it fast &lt;U&gt;for numbers&lt;/U&gt;?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Besides "counting" -- you can do much more with character columns - and I hope Tables/Summary will get such super powers in a future release:&amp;nbsp;&lt;LI-MESSAGE title="Summary and Tabulate: add aggregation option for Character columns" uid="659314" url="https://community.jmp.com/t5/JMP-Wish-List/Summary-and-Tabulate-add-aggregation-option-for-Character/m-p/659314#U659314" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-idea-thread lia-fa-icon lia-fa-idea lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;&lt;BR /&gt;Let's cross the fingers that it gets accepted ...&lt;/P&gt;</description>
    <pubDate>Thu, 17 Oct 2024 05:45:47 GMT</pubDate>
    <dc:creator>hogi</dc:creator>
    <dc:date>2024-10-17T05:45:47Z</dc:date>
    <item>
      <title>Summarize Function</title>
      <link>https://community.jmp.com/t5/Discussions/Summarize-Function/m-p/658454#M84777</link>
      <description>&lt;P&gt;I use the summarize function quite a bit in the course of my work.&amp;nbsp; Oftentimes, I want a frequency distribution of a variable. To do this I use Summarize( ex=By(dt:var), exCnt = Count(dt:var)). ex contains the levels of the variable and exCnt contains the frequency distribution. This works fine when the var is numeric, though not when the var is string. The work around I use is to create a dummy sequence(1, N Rows(dt), 1) numeric variable and run this syntax, Summarize( ex=By(dt:var), exCnt = Count(dt:dummy)).&amp;nbsp;&lt;/P&gt;&lt;P&gt;This works fine, but was wondering if there was a way to accomplish what I need without the extra dummy column?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sincerely,&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jul 2023 14:31:40 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Summarize-Function/m-p/658454#M84777</guid>
      <dc:creator>modelFit</dc:creator>
      <dc:date>2023-07-14T14:31:40Z</dc:date>
    </item>
    <item>
      <title>Re: Summarize Function</title>
      <link>https://community.jmp.com/t5/Discussions/Summarize-Function/m-p/658479#M84778</link>
      <description>&lt;P&gt;I would most likely use private Summary table, get values and then close it.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

dt = Open("$SAMPLE_DATA/Big Class.jmp");

dt_summary = dt &amp;lt;&amp;lt; Summary(Group(:sex), Freq("None"), Weight("None"), Link to original data table(0), private);

ex = Column(dt_summary, 1) &amp;lt;&amp;lt; get values;
exCnt = Column(dt_summary, 2) &amp;lt;&amp;lt; get values;

Close(dt_summary, no save);

Show(ex, exCnt);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 14 Jul 2023 14:43:29 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Summarize-Function/m-p/658479#M84778</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2023-07-14T14:43:29Z</dc:date>
    </item>
    <item>
      <title>Re: Summarize Function</title>
      <link>https://community.jmp.com/t5/Discussions/Summarize-Function/m-p/658556#M84781</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/14366"&gt;@jthi&lt;/a&gt;, thanks for your quick reply. That was what I was doing prior to inserting the dummy column. Its not ideal, but also not bad.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jul 2023 15:59:20 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Summarize-Function/m-p/658556#M84781</guid>
      <dc:creator>modelFit</dc:creator>
      <dc:date>2023-07-14T15:59:20Z</dc:date>
    </item>
    <item>
      <title>Re: Summarize Function</title>
      <link>https://community.jmp.com/t5/Discussions/Summarize-Function/m-p/658685#M84794</link>
      <description>&lt;P&gt;You could also directly add count column to the table you have. I think getting the unique values with Associative array should work&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

dt = Open("$SAMPLE_DATA/Big Class.jmp");

new_col = dt &amp;lt;&amp;lt; New Column("Counts", Numeric, Continuous, &amp;lt;&amp;lt; Set Each Value(
	Col Number(:name, :name)
));

aa = Associative Array(:name &amp;lt;&amp;lt; get values, :Counts &amp;lt;&amp;lt; get values);
//dt &amp;lt;&amp;lt; Delete Columns(new_col);
show(aa);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;CODE class=" language-jsl"&gt;&lt;/CODE&gt;but depending on the data, this could be slower than just using Summary table.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You could also make wish list item regarding this and provide a list of statistics which should be provided for character columns (first, last, mode, count...?) if this would be useful (and most likely it would be). There is one which has been now &lt;STRONG&gt;archived&lt;/STRONG&gt;, but the request isn't that well structured &lt;LI-MESSAGE title="Summerize/Summary aggregation function for character data. Concat Charcter Vector into a Scalar (by)" uid="106999" url="https://community.jmp.com/t5/JMP-Wish-List/Summerize-Summary-aggregation-function-for-character-data-Concat/m-p/106999#U106999" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-idea-thread lia-fa-icon lia-fa-idea lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt; but you could also comment your ideas to that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I did script &lt;LI-MESSAGE title="Analyse Columns" uid="460329" url="https://community.jmp.com/t5/JMP-Add-Ins/Analyse-Columns/m-p/460329#U460329" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-tkb-thread lia-fa-icon lia-fa-tkb lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt; add-in I did use at least Summary table, Summarize function, Distribution platform and matrix operations to calculate the different statistics depending on which was the fastest (I think I didn't try Query()).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 15 Jul 2023 06:23:12 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Summarize-Function/m-p/658685#M84794</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2023-07-15T06:23:12Z</dc:date>
    </item>
    <item>
      <title>Re: Summarize Function</title>
      <link>https://community.jmp.com/t5/Discussions/Summarize-Function/m-p/659329#M84857</link>
      <description>&lt;P&gt;Interesting that &lt;FONT face="courier new,courier"&gt;summarize&lt;/FONT&gt; is not able to count non-numeric entries.&lt;/P&gt;&lt;P&gt;Maybe intentionally - to make it fast &lt;U&gt;for numbers&lt;/U&gt;?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Besides "counting" -- you can do much more with character columns - and I hope Tables/Summary will get such super powers in a future release:&amp;nbsp;&lt;LI-MESSAGE title="Summary and Tabulate: add aggregation option for Character columns" uid="659314" url="https://community.jmp.com/t5/JMP-Wish-List/Summary-and-Tabulate-add-aggregation-option-for-Character/m-p/659314#U659314" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-idea-thread lia-fa-icon lia-fa-idea lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;&lt;BR /&gt;Let's cross the fingers that it gets accepted ...&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2024 05:45:47 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Summarize-Function/m-p/659329#M84857</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2024-10-17T05:45:47Z</dc:date>
    </item>
  </channel>
</rss>

