<?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: Initialize data - very useful - but fragile! in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Initialize-data-very-useful-but-fragile/m-p/780783#M96314</link>
    <description>&lt;P&gt;When I use JSL to create columns and specify values for those columns, I tend to be very specific and do things like&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt=New Table();

c=dt&amp;lt;&amp;lt;New Column("Random Normal Data");
dt &amp;lt;&amp;lt; Add Rows(20);

c &amp;lt;&amp;lt; Set Values(J(nrows(dt), 1, Random Normal()));

c=dt &amp;lt;&amp;lt; New Column("All Ones");
c &amp;lt;&amp;lt; set values(J(nrows(dt), 1));

dt &amp;lt;&amp;lt; New Column("All A's", Character);

for each row(
	:"All A's"n = "A"
);

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MathStatChem_0-1723354883309.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/67028i7928BE9969AE72B6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MathStatChem_0-1723354883309.png" alt="MathStatChem_0-1723354883309.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 11 Aug 2024 05:41:34 GMT</pubDate>
    <dc:creator>MathStatChem</dc:creator>
    <dc:date>2024-08-11T05:41:34Z</dc:date>
    <item>
      <title>Initialize data - very useful - but fragile!</title>
      <link>https://community.jmp.com/t5/Discussions/Initialize-data-very-useful-but-fragile/m-p/780753#M96308</link>
      <description>&lt;P&gt;Hi, the &lt;STRONG&gt;initialize data&lt;/STRONG&gt; settings in the column menu are quite useful.&lt;BR /&gt;Who managed to control the settings via JSL?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;In the scripting index, I just found:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_2-1723308563244.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/67022iF9EC9A76293C1199/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_2-1723308563244.png" alt="hogi_2-1723308563244.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;which fits to "constant" mode. How can I set the other modes?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_0-1723307960193.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/67020iC7FF90870C65ED6D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_0-1723307960193.png" alt="hogi_0-1723307960193.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 10 Aug 2024 16:51:07 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Initialize-data-very-useful-but-fragile/m-p/780753#M96308</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2024-08-10T16:51:07Z</dc:date>
    </item>
    <item>
      <title>Re: Initialize data - very useful - but fragile!</title>
      <link>https://community.jmp.com/t5/Discussions/Initialize-data-very-useful-but-fragile/m-p/780763#M96309</link>
      <description>&lt;P&gt;Only constant and today are specifically using initial data, rest are building them using for each row (JMP action recorder seems to be recording actions for Constant and Today data initialization incorrectly).&lt;/P&gt;</description>
      <pubDate>Sat, 10 Aug 2024 17:44:33 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Initialize-data-very-useful-but-fragile/m-p/780763#M96309</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-08-10T17:44:33Z</dc:date>
    </item>
    <item>
      <title>Re: Initialize data - very useful - but fragile!</title>
      <link>https://community.jmp.com/t5/Discussions/Initialize-data-very-useful-but-fragile/m-p/780768#M96310</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/14366"&gt;@jthi&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;Only constant and today are specifically using initial data, rest are building them using for each row&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Ah right, good point. Surprising ...&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Today()&lt;/FONT&gt;&lt;SPAN&gt; is really (!!!) useful.&lt;BR /&gt;&lt;/SPAN&gt;Every new row is added with the current timestamp -&amp;nbsp;&amp;nbsp;some hidden "magic" which is not visible from the script for the data table.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_3-1723316051681.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/67026i2FB7DF890A837ECE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_3-1723316051681.png" alt="hogi_3-1723316051681.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;A pity that&amp;nbsp;&lt;FONT face="courier new,courier"&gt;Sequence Data&lt;/FONT&gt; and &lt;FONT face="courier new,courier"&gt;Random&lt;/FONT&gt; are just accessible in the beginning - no chance to trigger them later:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_0-1723314837949.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/67023iD599806EB177870E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_0-1723314837949.png" alt="hogi_0-1723314837949.png" /&gt;&lt;/span&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;And when a user changes the setting to &lt;/SPAN&gt;&lt;FONT face="courier new,courier"&gt;Missing/Empty&lt;/FONT&gt;&lt;SPAN&gt;&amp;nbsp;or misses the chance to define a&amp;nbsp;&amp;nbsp;&lt;STRONG&gt;Initialize Date&lt;/STRONG&gt;&amp;nbsp;setting before he writes the first value into the column - he loses his chance to see the menu.&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;So, some things that could be improved in a future version of JMP ...&lt;BR /&gt;On the other hand, I don't know id other JMP users use this feature&lt;BR /&gt;- and how many of them feel limited by the current functionality.&lt;/P&gt;</description>
      <pubDate>Sat, 10 Aug 2024 18:58:58 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Initialize-data-very-useful-but-fragile/m-p/780768#M96310</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2024-08-10T18:58:58Z</dc:date>
    </item>
    <item>
      <title>Re: Initialize data - very useful - but fragile!</title>
      <link>https://community.jmp.com/t5/Discussions/Initialize-data-very-useful-but-fragile/m-p/780783#M96314</link>
      <description>&lt;P&gt;When I use JSL to create columns and specify values for those columns, I tend to be very specific and do things like&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt=New Table();

c=dt&amp;lt;&amp;lt;New Column("Random Normal Data");
dt &amp;lt;&amp;lt; Add Rows(20);

c &amp;lt;&amp;lt; Set Values(J(nrows(dt), 1, Random Normal()));

c=dt &amp;lt;&amp;lt; New Column("All Ones");
c &amp;lt;&amp;lt; set values(J(nrows(dt), 1));

dt &amp;lt;&amp;lt; New Column("All A's", Character);

for each row(
	:"All A's"n = "A"
);

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MathStatChem_0-1723354883309.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/67028i7928BE9969AE72B6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MathStatChem_0-1723354883309.png" alt="MathStatChem_0-1723354883309.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 11 Aug 2024 05:41:34 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Initialize-data-very-useful-but-fragile/m-p/780783#M96314</guid>
      <dc:creator>MathStatChem</dc:creator>
      <dc:date>2024-08-11T05:41:34Z</dc:date>
    </item>
    <item>
      <title>Re: Initialize data - very useful - but fragile!</title>
      <link>https://community.jmp.com/t5/Discussions/Initialize-data-very-useful-but-fragile/m-p/780793#M96320</link>
      <description>&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Set each value&lt;/FONT&gt; is very convenient.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;:Random Normal Data &amp;lt;&amp;lt; Set Each Value(Random Normal());
: "All A's"n &amp;lt;&amp;lt; set each value("A");&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;It can also be used during the creation of the column:&amp;nbsp;&lt;FONT face="courier new,courier"&gt;New Column("col", set each value()).&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope it keeps it's versatility:&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;LI-MESSAGE title="Make using formula expressions in Set Each Value and using expressions as first argument in Col statistical formulas supported behaviour" uid="666966" url="https://community.jmp.com/t5/JMP-Wish-List/Make-using-formula-expressions-in-Set-Each-Value-and-using/m-p/666966#U666966" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-idea-thread lia-fa-icon lia-fa-idea lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 11 Aug 2024 11:34:15 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Initialize-data-very-useful-but-fragile/m-p/780793#M96320</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2024-08-11T11:34:15Z</dc:date>
    </item>
  </channel>
</rss>

