<?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 Sampling data every n points in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Sampling-data-every-n-points/m-p/35685#M21052</link>
    <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to sample data every 50 rows and check if values in a column, F, gives F(50)-F(1)&amp;gt;1. I don't want to use the lag function as it should only sample at row 1, 50, 100, 150 and so on.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&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, 11 Feb 2017 20:41:45 GMT</pubDate>
    <dc:creator>SPradh</dc:creator>
    <dc:date>2017-02-11T20:41:45Z</dc:date>
    <item>
      <title>Sampling data every n points</title>
      <link>https://community.jmp.com/t5/Discussions/Sampling-data-every-n-points/m-p/35685#M21052</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to sample data every 50 rows and check if values in a column, F, gives F(50)-F(1)&amp;gt;1. I don't want to use the lag function as it should only sample at row 1, 50, 100, 150 and so on.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&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, 11 Feb 2017 20:41:45 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Sampling-data-every-n-points/m-p/35685#M21052</guid>
      <dc:creator>SPradh</dc:creator>
      <dc:date>2017-02-11T20:41:45Z</dc:date>
    </item>
    <item>
      <title>Re: Sampling data every n points</title>
      <link>https://community.jmp.com/t5/Discussions/Sampling-data-every-n-points/m-p/35686#M21053</link>
      <description>&lt;P&gt;Use the mod(), "modulus" function:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;names default to here(1);
dt= current data table();
dt&amp;lt;&amp;lt;select where(mod(row(),50)==0);&lt;BR /&gt;dt &amp;lt;&amp;lt; subset(selected rows(1),selected columns(0));&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Help==&amp;gt;Scripting Index==&amp;gt;Functions==&amp;gt;Mod&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 11 Feb 2017 22:27:19 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Sampling-data-every-n-points/m-p/35686#M21053</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2017-02-11T22:27:19Z</dc:date>
    </item>
  </channel>
</rss>

