<?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: Repeat a sequence in a column -JSL in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Repeat-a-sequence-in-a-column-JSL/m-p/35014#M20669</link>
    <description>&lt;P&gt;Here is some code to play with&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;lst = {1,50000,100000};
nRepeats = 10;
values = Repeat(lst,nRepeats); // this will be a list of 30 values
values[1::NRows(dt);
Column(dt,"Test") &amp;lt;&amp;lt; Set Values(values);
// if the table only had 25 rows I could use values[1::25]&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 26 Jan 2017 22:10:02 GMT</pubDate>
    <dc:creator>David_Burnham</dc:creator>
    <dc:date>2017-01-26T22:10:02Z</dc:date>
    <item>
      <title>Repeat a sequence in a column -JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Repeat-a-sequence-in-a-column-JSL/m-p/34972#M20650</link>
      <description>&lt;P&gt;I was looking into the scripting guide, and it talks about&amp;nbsp;Sequence( from, to, stepsize, repeat ); with from, to , stepsize and repeat.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What if I want 3 values say, 1, 50000, 100000 repeated till the end of table in a column? (This is basically highlighting the 3 values in a column and right click and say fill to the end of the table)&lt;/P&gt;&lt;P&gt;Do i have to run a for loop, or is there like a one line script available in JSL?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much for your suggestions.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2017 20:35:05 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Repeat-a-sequence-in-a-column-JSL/m-p/34972#M20650</guid>
      <dc:creator>vishwasanj</dc:creator>
      <dc:date>2017-01-25T20:35:05Z</dc:date>
    </item>
    <item>
      <title>Re: Repeat a sequence in a column -JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Repeat-a-sequence-in-a-column-JSL/m-p/34977#M20653</link>
      <description>&lt;P&gt;Notice that when you select &lt;STRONG&gt;Cols&lt;/STRONG&gt; &amp;gt; &lt;STRONG&gt;New Column&lt;/STRONG&gt;, there is an option near the bottom of the dialog to initialize the new column in several ways including a sequence. If you created the new column by double-clicking to the right of the last column, then select the new, empty column and select &lt;STRONG&gt;Cols&lt;/STRONG&gt; &amp;gt; &lt;STRONG&gt;Column Info&lt;/STRONG&gt; to see the same feature.&lt;/P&gt;
&lt;P&gt;Note that this feature disappears as soon as you enter any values in the column another way.&lt;/P&gt;
&lt;P&gt;No formula or script necessary for a simple case like this one. Already provdided for,&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2017 21:34:11 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Repeat-a-sequence-in-a-column-JSL/m-p/34977#M20653</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2017-01-25T21:34:11Z</dc:date>
    </item>
    <item>
      <title>Re: Repeat a sequence in a column -JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Repeat-a-sequence-in-a-column-JSL/m-p/35014#M20669</link>
      <description>&lt;P&gt;Here is some code to play with&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;lst = {1,50000,100000};
nRepeats = 10;
values = Repeat(lst,nRepeats); // this will be a list of 30 values
values[1::NRows(dt);
Column(dt,"Test") &amp;lt;&amp;lt; Set Values(values);
// if the table only had 25 rows I could use values[1::25]&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 26 Jan 2017 22:10:02 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Repeat-a-sequence-in-a-column-JSL/m-p/35014#M20669</guid>
      <dc:creator>David_Burnham</dc:creator>
      <dc:date>2017-01-26T22:10:02Z</dc:date>
    </item>
    <item>
      <title>Re: Repeat a sequence in a column -JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Repeat-a-sequence-in-a-column-JSL/m-p/189699#M40830</link>
      <description>&lt;P&gt;Hi Mark,&lt;/P&gt;&lt;P&gt;this was new for me - thank you. Could you please help me how to create a script? We import data regularily and always need to add columns with e.g. 10 repetitions each value (from 1 to 16).&lt;/P&gt;</description>
      <pubDate>Wed, 27 Mar 2019 12:44:29 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Repeat-a-sequence-in-a-column-JSL/m-p/189699#M40830</guid>
      <dc:creator>PS_Ato</dc:creator>
      <dc:date>2019-03-27T12:44:29Z</dc:date>
    </item>
  </channel>
</rss>

