<?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: Average of posts per day in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Average-of-posts-per-day/m-p/341364#M58994</link>
    <description>&lt;P&gt;For the mean by day you could use the "col mean" function with by variable.&lt;/P&gt;&lt;P&gt;First create a new column with day from your date (context menu, new Formula column --&amp;gt; date --&amp;gt; day).&lt;/P&gt;&lt;P&gt;And then create the Formula column with "col mean(:date, :day)".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To join another column from a different table you Need to define a unique key, so that there is a clear rule. This can also be the rownumber.&lt;/P&gt;</description>
    <pubDate>Sat, 12 Dec 2020 20:09:11 GMT</pubDate>
    <dc:creator>Georg</dc:creator>
    <dc:date>2020-12-12T20:09:11Z</dc:date>
    <item>
      <title>Average of posts per day</title>
      <link>https://community.jmp.com/t5/Discussions/Average-of-posts-per-day/m-p/341345#M58993</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;I am working on a paper for my university and I want to find on average how often does Trump post every day. However, I do not need the mean of all the data I have, but the mean of each day since 2016 (data is from 2016-2020). In other words, I want to make a new column in which each row shows the average posts on that day. Example below the image.&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Date.png" style="width: 793px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/28877iDE7A1223FCF65C03/image-size/large?v=v2&amp;amp;px=999" role="button" title="Date.png" alt="Date.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;2016.01.04 - 5 posts&lt;/P&gt;&lt;P&gt;2016.01.05 - 9 posts&lt;/P&gt;&lt;P&gt;2016.01.06 - 4 posts&lt;BR /&gt;Is this doable within JMP?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Another problem that I am facing is that I am not able to copy a column from a different data file and place it in another.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Close.png" style="width: 534px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/28878iEF104030507F27DF/image-size/large?v=v2&amp;amp;px=999" role="button" title="Close.png" alt="Close.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;It just shows points instead of numbers.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know that I am asking about a lot, but I will be thankful if someone is able to help me out.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2023 23:23:40 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Average-of-posts-per-day/m-p/341345#M58993</guid>
      <dc:creator>BorislavP00</dc:creator>
      <dc:date>2023-06-10T23:23:40Z</dc:date>
    </item>
    <item>
      <title>Re: Average of posts per day</title>
      <link>https://community.jmp.com/t5/Discussions/Average-of-posts-per-day/m-p/341364#M58994</link>
      <description>&lt;P&gt;For the mean by day you could use the "col mean" function with by variable.&lt;/P&gt;&lt;P&gt;First create a new column with day from your date (context menu, new Formula column --&amp;gt; date --&amp;gt; day).&lt;/P&gt;&lt;P&gt;And then create the Formula column with "col mean(:date, :day)".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To join another column from a different table you Need to define a unique key, so that there is a clear rule. This can also be the rownumber.&lt;/P&gt;</description>
      <pubDate>Sat, 12 Dec 2020 20:09:11 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Average-of-posts-per-day/m-p/341364#M58994</guid>
      <dc:creator>Georg</dc:creator>
      <dc:date>2020-12-12T20:09:11Z</dc:date>
    </item>
    <item>
      <title>Re: Average of posts per day</title>
      <link>https://community.jmp.com/t5/Discussions/Average-of-posts-per-day/m-p/341383#M58995</link>
      <description>&lt;OL&gt;
&lt;LI&gt;It appears that your Date column has been input as a character string, instead of a JMP Date/Time value.&amp;nbsp; The preferred thing to do, would be to convert the column into a Numeric, Date/Time value. To change to a Numeric, Data/Time do the following:
&lt;OL&gt;
&lt;LI&gt;Double Click on the column header to bring up the Column Info window.&lt;/LI&gt;
&lt;LI&gt;Change the Data Type from Character to Numeric&lt;/LI&gt;
&lt;LI&gt;Change the Modeling Type from Nominal to Continuous&lt;/LI&gt;
&lt;LI&gt;Click on the down arrow for the Format, and select Time=&amp;gt;yyyy-mm-ddThh:mm:ss&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;Click Apply.&amp;nbsp; The column should now will be converted to the number of seconds since midnight, Jan, 1, 1904, and will be displayed using the&amp;nbsp;yyyy-mm-ddThh:mm:ss&amp;nbsp;&lt;/LI&gt;
&lt;/OL&gt;
&lt;/LI&gt;
&lt;LI&gt;Now to get the count of the number of tweets per day, first a new column needs to be created which is just the date part of the Date column, which contains both the Date and Time of the day.&amp;nbsp; To create that column do the following:
&lt;OL&gt;
&lt;LI&gt;Click on the Cols pull down menu and select New Columns which will bring up the Column Info window.&lt;/LI&gt;
&lt;LI&gt;Type in the Column Name you want to give it&lt;/LI&gt;
&lt;LI&gt;Change the format to mm/dd/yyyy&lt;/LI&gt;
&lt;LI&gt;Click on Column Properties and select Formula&lt;/LI&gt;
&lt;LI&gt;Type in the following formula&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Informat( Short Date( :Column 1 ), "mm/dd/yyyy" )&lt;/LI&gt;
&lt;LI&gt;Click on OK&lt;/LI&gt;
&lt;LI&gt;Click on OK again&lt;/LI&gt;
&lt;/OL&gt;
&lt;/LI&gt;
&lt;LI&gt;You now have a column that just contains dates&lt;/LI&gt;
&lt;LI&gt;To Calculate the counts perday, go to the Tables pull down menu and select Summary.&amp;nbsp; In the Summary dialog box do the following:
&lt;OL&gt;
&lt;LI&gt;Select the column that was just created, and then Click on the Group button to move the column into the Group selection area.&lt;/LI&gt;
&lt;LI&gt;With the new column still selected, click on Statistics button and select N&lt;/LI&gt;
&lt;LI&gt;Click on OK&lt;/LI&gt;
&lt;/OL&gt;
&lt;/LI&gt;
&lt;LI&gt;A new table will be created that has the Total counts for each day&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Concerning your second issue, all you need to do copy a column from one table to another, is to&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Click on the column header,&lt;/LI&gt;
&lt;LI&gt;Go to the Edit pull down menu and select Copy With Column Names.&lt;/LI&gt;
&lt;LI&gt;Go to the data table you want to copy the column to and double click on the header area after the last column in the data table&lt;/LI&gt;
&lt;LI&gt;Go to the Edit pull down menu for the data table, and select Paste With Column Names&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Sat, 12 Dec 2020 20:36:04 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Average-of-posts-per-day/m-p/341383#M58995</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-12-12T20:36:04Z</dc:date>
    </item>
    <item>
      <title>Re: Average of posts per day</title>
      <link>https://community.jmp.com/t5/Discussions/Average-of-posts-per-day/m-p/341384#M58996</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/9474"&gt;@Georg&lt;/a&gt;, I don't believe your suggestion will work.&amp;nbsp; The Day function returns the Day of the Month (1-31), not the date part of the date/time.&lt;/P&gt;</description>
      <pubDate>Sat, 12 Dec 2020 20:50:50 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Average-of-posts-per-day/m-p/341384#M58996</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-12-12T20:50:50Z</dc:date>
    </item>
    <item>
      <title>Re: Average of posts per day</title>
      <link>https://community.jmp.com/t5/Discussions/Average-of-posts-per-day/m-p/341385#M58997</link>
      <description>&lt;P&gt;Thanks &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2687"&gt;@txnelson&lt;/a&gt;, you're Right, "day" won't work,&lt;/P&gt;&lt;P&gt;but there is also a shortcut "date" on Right mouseclick on that numeric date/time column as you pointed out, that would bring up a new column serving as by column for col stats.&lt;/P&gt;</description>
      <pubDate>Sat, 12 Dec 2020 21:46:43 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Average-of-posts-per-day/m-p/341385#M58997</guid>
      <dc:creator>Georg</dc:creator>
      <dc:date>2020-12-12T21:46:43Z</dc:date>
    </item>
    <item>
      <title>Re: Average of posts per day</title>
      <link>https://community.jmp.com/t5/Discussions/Average-of-posts-per-day/m-p/341390#M58999</link>
      <description>&lt;P&gt;One small problem arose. The dates between the 2 tables do not correspond. Meaning that when I copy-paste the column into the new table it does not match the data that it should be for. I tried looking for how to add 2 rows after every 5 rows and I found this from the Help menu:&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( "$Desktop/2016-2020.jmp" );
dt &amp;lt;&amp;lt; Add Rows( 2, after( 5 ) );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;However, the formula only adds 2 rows after the 5th row, and I need it to add it after each 5th row.&amp;nbsp;&lt;BR /&gt;So it would add 2 rows after the 5th, 10th, then 15th, and so on.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Dec 2020 13:01:09 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Average-of-posts-per-day/m-p/341390#M58999</guid>
      <dc:creator>BorislavP00</dc:creator>
      <dc:date>2020-12-14T13:01:09Z</dc:date>
    </item>
    <item>
      <title>Re: Average of posts per day</title>
      <link>https://community.jmp.com/t5/Discussions/Average-of-posts-per-day/m-p/341393#M59001</link>
      <description>&lt;P&gt;Here is a simple modification to the code you found, that starts at the last 5th row in the data table, and works backwards, adding 2 rows at each 5th row&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Current Data Table();
whereToAdd = Floor( N Rows( dt ) / 5 ) * 5;

For( i = whereToAdd, i &amp;gt;= 1, i = i - 5,
	dt &amp;lt;&amp;lt; Add Rows( 2, after( i ) )
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 12 Dec 2020 23:45:44 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Average-of-posts-per-day/m-p/341393#M59001</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-12-12T23:45:44Z</dc:date>
    </item>
    <item>
      <title>Re: Average of posts per day</title>
      <link>https://community.jmp.com/t5/Discussions/Average-of-posts-per-day/m-p/341414#M59004</link>
      <description>&lt;P&gt;Instead of caring yourself About Right order of the rows and corresponding Dates,&lt;/P&gt;&lt;P&gt;I would strongly recommend to let JMP care About: I would define proper ID's like date in both tables,&lt;/P&gt;&lt;P&gt;and then join the data (join tables, or using symbolic link etc.).&lt;/P&gt;</description>
      <pubDate>Sun, 13 Dec 2020 09:44:27 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Average-of-posts-per-day/m-p/341414#M59004</guid>
      <dc:creator>Georg</dc:creator>
      <dc:date>2020-12-13T09:44:27Z</dc:date>
    </item>
  </channel>
</rss>

