<?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: Create a column with a specific data pattern in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Create-a-column-with-a-specific-data-pattern/m-p/856449#M102710</link>
    <description>&lt;P&gt;Jarmo&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Second one exactly.&lt;/P&gt;</description>
    <pubDate>Thu, 27 Mar 2025 21:22:52 GMT</pubDate>
    <dc:creator>SpannerHead</dc:creator>
    <dc:date>2025-03-27T21:22:52Z</dc:date>
    <item>
      <title>Create a column with a specific data pattern</title>
      <link>https://community.jmp.com/t5/Discussions/Create-a-column-with-a-specific-data-pattern/m-p/856422#M102703</link>
      <description>&lt;P&gt;I want to add a column to my data that changes from "1" values to "-1" values every 101 rows.&amp;nbsp; I saw lots of ways to get close but no solution yet.&amp;nbsp; Help appreciated.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Mar 2025 20:25:01 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Create-a-column-with-a-specific-data-pattern/m-p/856422#M102703</guid>
      <dc:creator>SpannerHead</dc:creator>
      <dc:date>2025-03-27T20:25:01Z</dc:date>
    </item>
    <item>
      <title>Re: Create a column with a specific data pattern</title>
      <link>https://community.jmp.com/t5/Discussions/Create-a-column-with-a-specific-data-pattern/m-p/856432#M102704</link>
      <description>&lt;P&gt;So you wish to have repeating pattern of 1, 0.98, 0.96,... -0.96, -0.98, -1?&lt;/P&gt;</description>
      <pubDate>Thu, 27 Mar 2025 20:32:45 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Create-a-column-with-a-specific-data-pattern/m-p/856432#M102704</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2025-03-27T20:32:45Z</dc:date>
    </item>
    <item>
      <title>Re: Create a column with a specific data pattern</title>
      <link>https://community.jmp.com/t5/Discussions/Create-a-column-with-a-specific-data-pattern/m-p/856433#M102705</link>
      <description>&lt;P&gt;Or first 100 rows of 1 and then 100 rows of -1?&lt;/P&gt;</description>
      <pubDate>Thu, 27 Mar 2025 20:36:45 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Create-a-column-with-a-specific-data-pattern/m-p/856433#M102705</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2025-03-27T20:36:45Z</dc:date>
    </item>
    <item>
      <title>Re: Create a column with a specific data pattern</title>
      <link>https://community.jmp.com/t5/Discussions/Create-a-column-with-a-specific-data-pattern/m-p/856449#M102710</link>
      <description>&lt;P&gt;Jarmo&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Second one exactly.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Mar 2025 21:22:52 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Create-a-column-with-a-specific-data-pattern/m-p/856449#M102710</guid>
      <dc:creator>SpannerHead</dc:creator>
      <dc:date>2025-03-27T21:22:52Z</dc:date>
    </item>
    <item>
      <title>Re: Create a column with a specific data pattern</title>
      <link>https://community.jmp.com/t5/Discussions/Create-a-column-with-a-specific-data-pattern/m-p/856450#M102711</link>
      <description>&lt;P&gt;You can do this with different combinations of Row(), Mod(), Floor(), Ceiling()... Here is one example which might do what you are looking for&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;1 - 2 * Mod(Floor((Row() -1) / 100), 2)&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 27 Mar 2025 21:27:56 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Create-a-column-with-a-specific-data-pattern/m-p/856450#M102711</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2025-03-27T21:27:56Z</dc:date>
    </item>
    <item>
      <title>Re: Create a column with a specific data pattern</title>
      <link>https://community.jmp.com/t5/Discussions/Create-a-column-with-a-specific-data-pattern/m-p/856516#M102714</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/53914"&gt;@SpannerHead&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;These are always fun challenges since there are so many options!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here another way besides&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/14366"&gt;@jthi&lt;/a&gt;&amp;nbsp;excellent method&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;If( Row() &amp;lt; 101,
	1,
	Lag( :Column 1, 100 ) * -1
)&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 28 Mar 2025 01:37:44 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Create-a-column-with-a-specific-data-pattern/m-p/856516#M102714</guid>
      <dc:creator>shampton82</dc:creator>
      <dc:date>2025-03-28T01:37:44Z</dc:date>
    </item>
  </channel>
</rss>

