<?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: Sum of all rows into a list in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Sum-of-all-rows-into-a-list/m-p/745599#M92545</link>
    <description>&lt;P&gt;Here is one way to do it.&amp;nbsp; Others may have better methods&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Current Data Table();
sumMatrix = [];
For Each( {col}, dt &amp;lt;&amp;lt; get column names( string, numeric ),
	sumMatrix = sumMatrix || Col Sum( Column( dt, col ) )
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 10 Apr 2024 01:37:37 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2024-04-10T01:37:37Z</dc:date>
    <item>
      <title>Sum of all rows into a list</title>
      <link>https://community.jmp.com/t5/Discussions/Sum-of-all-rows-into-a-list/m-p/745552#M92542</link>
      <description>&lt;P&gt;I'm trying to take the sum of all of my rows and add it to a list.&amp;nbsp; So, the sum of row 1 will be item 1, sum of row 2 will be item 2, etc.&amp;nbsp; Is there an easy way to do this using jsl?&lt;/P&gt;</description>
      <pubDate>Tue, 09 Apr 2024 22:18:28 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Sum-of-all-rows-into-a-list/m-p/745552#M92542</guid>
      <dc:creator>wyler00</dc:creator>
      <dc:date>2024-04-09T22:18:28Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of all rows into a list</title>
      <link>https://community.jmp.com/t5/Discussions/Sum-of-all-rows-into-a-list/m-p/745599#M92545</link>
      <description>&lt;P&gt;Here is one way to do it.&amp;nbsp; Others may have better methods&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Current Data Table();
sumMatrix = [];
For Each( {col}, dt &amp;lt;&amp;lt; get column names( string, numeric ),
	sumMatrix = sumMatrix || Col Sum( Column( dt, col ) )
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 10 Apr 2024 01:37:37 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Sum-of-all-rows-into-a-list/m-p/745599#M92545</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2024-04-10T01:37:37Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of all rows into a list</title>
      <link>https://community.jmp.com/t5/Discussions/Sum-of-all-rows-into-a-list/m-p/745679#M92547</link>
      <description>&lt;P&gt;You can also use matrix calculations, below is one option&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1); 

dt = open("$SAMPLE_DATA/Big Class.jmp");

m = dt &amp;lt;&amp;lt; get as matrix;

sums = V Sum(m`);

tolist = As List(sums)[1];
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 10 Apr 2024 04:24:21 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Sum-of-all-rows-into-a-list/m-p/745679#M92547</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-04-10T04:24:21Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of all rows into a list</title>
      <link>https://community.jmp.com/t5/Discussions/Sum-of-all-rows-into-a-list/m-p/745945#M92563</link>
      <description>&lt;P&gt;Thank you.&amp;nbsp; Both of your solutions work great.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Apr 2024 15:51:50 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Sum-of-all-rows-into-a-list/m-p/745945#M92563</guid>
      <dc:creator>wyler00</dc:creator>
      <dc:date>2024-04-10T15:51:50Z</dc:date>
    </item>
  </channel>
</rss>

