<?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: robust column reference in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/robust-column-reference/m-p/904238#M106319</link>
    <description>&lt;P&gt;I don't think Col Mean works in a script very well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, "60.285714286" is the value of row 10, if the column formula, Col Mean(:height,:age) were applied in a formula column in the data table.&lt;/P&gt;
&lt;P&gt;And "62.55" is the value of row 10 if it were in a formula column with Col Mean(;height).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This would be a really great way to obscure looking up values in another table, especially if the table were private.&lt;/P&gt;</description>
    <pubDate>Fri, 26 Sep 2025 20:45:46 GMT</pubDate>
    <dc:creator>Byron_JMP</dc:creator>
    <dc:date>2025-09-26T20:45:46Z</dc:date>
    <item>
      <title>robust column reference</title>
      <link>https://community.jmp.com/t5/Discussions/robust-column-reference/m-p/903135#M106204</link>
      <description>&lt;P&gt;After a few minutes coding with JSL, users wonder about strange objects like &lt;FONT face="courier new,courier"&gt;:sex&lt;/FONT&gt; in&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open( "$SAMPLE_DATA/Big Class.jmp" );

x = :sex&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Expert users have some experience with such column references and use them all the time.&lt;BR /&gt;But what is &lt;FONT face="courier new,courier"&gt;:sex ?&amp;nbsp;&lt;/FONT&gt;Is&amp;nbsp;&amp;nbsp;&lt;FONT face="courier new,courier"&gt;dt:sex&lt;/FONT&gt;&amp;nbsp; more robust? Where do I find a documentation ?&lt;BR /&gt;&lt;BR /&gt;Let's collect and share some insights. Please add your thoughts and correct my posts if you find errors ...&lt;BR /&gt;&lt;BR /&gt;my 5 cents:&lt;/P&gt;</description>
      <pubDate>Tue, 30 Sep 2025 18:33:08 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/robust-column-reference/m-p/903135#M106204</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2025-09-30T18:33:08Z</dc:date>
    </item>
    <item>
      <title>Re: robust column reference</title>
      <link>https://community.jmp.com/t5/Discussions/robust-column-reference/m-p/903147#M106205</link>
      <description>&lt;P&gt;In JSL, one and the same column reference&amp;nbsp;&lt;FONT face="courier new,courier"&gt;:sex&lt;/FONT&gt;&amp;nbsp;(or &lt;FONT face="courier new,courier"&gt;dt:sex&lt;/FONT&gt;) can be used in two ways:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;# 1) as a reference to a column&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;:sex &amp;lt;&amp;lt; get name;
Data Table( "Big Class Families" ) &amp;lt;&amp;lt; Distribution(	Nominal Distribution( Column( :sex ) ));&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;... and #2&lt;BR /&gt;&lt;STRONG&gt;&lt;STRIKE&gt;&amp;nbsp;to retrieve the entry of the current row in this column, like in:&lt;/STRIKE&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;[edit]: no!&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;"To be used in column formulas - and can usually be thought of as the 'value of the current row'.&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;But there are many more cases which also require this type of :sex&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;row()=5;
s=:sex;&amp;nbsp;//&amp;nbsp;value&amp;nbsp;of&amp;nbsp;the&amp;nbsp;current&amp;nbsp;row

// other cases:
lag(:sex,1); // value of the previous row
Col Mean(:height, :age));&amp;nbsp;//&amp;nbsp;mean :height&amp;nbsp;of&amp;nbsp;rows&amp;nbsp;with&amp;nbsp;same&amp;nbsp;:age&lt;/CODE&gt;&lt;CODE class=" language-jsl"&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please note: in column formulas, the following approaches are equivalent&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;new column("s", formula (:sex));
new column("s", formula (:sex[]));
new column("s", formula (:sex[row()]))
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;To create such an object from a string, one has 2 options:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;column name = "sex";
col= Column (column name); // for the first one (accessing the column)

val = As Column (column name) // for the second one&amp;nbsp;(accessing&amp;nbsp;the&amp;nbsp;column&amp;nbsp;in&amp;nbsp;formulas)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;Actually, there is a very cool 3rd option, which I learned from&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/14366"&gt;@jthi&lt;/a&gt;&amp;nbsp;:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;the universal column reference = Name Expr(As Column(column name))&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;it can be use like &lt;FONT face="courier new,courier"&gt;:sex&lt;/FONT&gt; for both approaches. referencing the column and accessing the entry of the current row.&lt;BR /&gt;&lt;BR /&gt;&lt;LI-MESSAGE title="Column() vs As Column() vs datable:column vs dt:As name(&amp;amp;quot;column&amp;amp;quot;)" uid="542062" url="https://community.jmp.com/t5/Discussions/Column-vs-As-Column-vs-datable-column-vs-dt-As-name-quot-column/m-p/542062#U542062" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-forum-thread lia-fa-icon lia-fa-forum lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Sep 2025 18:40:44 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/robust-column-reference/m-p/903147#M106205</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2025-09-30T18:40:44Z</dc:date>
    </item>
    <item>
      <title>Re: robust column reference</title>
      <link>https://community.jmp.com/t5/Discussions/robust-column-reference/m-p/903148#M106206</link>
      <description>&lt;P&gt;&lt;FONT face="courier new,courier"&gt;:sex&lt;/FONT&gt; looks fragile - what happens when the user changes the column name?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default to Here(1);
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );

x = Name Expr(As column("name"));
Show(Name Expr(x)); // : name 

:name &amp;lt;&amp;lt; set name("The name");

Show(Name Expr(x)); // :The name&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;wow, great! Not fragile at all!&lt;/P&gt;</description>
      <pubDate>Wed, 24 Sep 2025 19:39:44 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/robust-column-reference/m-p/903148#M106206</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2025-09-24T19:39:44Z</dc:date>
    </item>
    <item>
      <title>Re: robust column reference</title>
      <link>https://community.jmp.com/t5/Discussions/robust-column-reference/m-p/903150#M106207</link>
      <description>&lt;P&gt;And when the user changes the data table?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default to Here(1);
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );

x = Name Expr(As column("name"));
Show(Name Expr(x));
x[1] = "Marker";

:name &amp;lt;&amp;lt; set name("The name");

dt = Open( "$SAMPLE_DATA/Big Class Families.jmp" );

Show(Name Expr(x));
Show(x[1])&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The innocent &lt;FONT face="courier new,courier"&gt;:sex&lt;/FONT&gt; even knows which data table it actually belongs to. Wonderful!&lt;/P&gt;</description>
      <pubDate>Tue, 23 Sep 2025 20:10:08 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/robust-column-reference/m-p/903150#M106207</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2025-09-23T20:10:08Z</dc:date>
    </item>
    <item>
      <title>Re: robust column reference</title>
      <link>https://community.jmp.com/t5/Discussions/robust-column-reference/m-p/903156#M106210</link>
      <description>&lt;P&gt;Now, let's go from 1 column to 3 columns:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;myList1 = {:name,:sex,:age};&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;A very complicated and useless way to create this list is:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;myList2 = Eval List({Name Expr(As column(:name)),Name Expr(As column(:sex)),Name Expr(As column(:age))});&lt;/CODE&gt;&lt;/PRE&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-1758660151284.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/83301i299CFB1CE722FCCD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_0-1758660151284.png" alt="hogi_0-1758660151284.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Sep 2025 18:55:09 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/robust-column-reference/m-p/903156#M106210</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2025-09-24T18:55:09Z</dc:date>
    </item>
    <item>
      <title>Re: robust column reference</title>
      <link>https://community.jmp.com/t5/Discussions/robust-column-reference/m-p/903157#M106211</link>
      <description>&lt;P&gt;useless?&lt;BR /&gt;&lt;BR /&gt;you already notice the big difference when you try to execute the above code without a&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open( "$SAMPLE_DATA/Big Class.jmp" );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;The first line does not care that there is no open data table. When you run the second line, JMP will complain:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_1-1758660245484.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/83302i659C2CD9F4DCBA56/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_1-1758660245484.png" alt="hogi_1-1758660245484.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Even better: when the list is created with the second approach, the column references are very robust.&lt;BR /&gt;Independent of the current data table, JMP will go to &lt;FONT face="courier new,courier"&gt;dt&lt;/FONT&gt; and and use the columns from there:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open( "$SAMPLE_DATA/Big Class.jmp" );

myList1 = {:name,:sex,:age};

myList2 = Eval List({Name Expr(As column(:name)),Name Expr(As column(:sex)),Name Expr(As column(:age))});

dt2= Open( "$SAMPLE_DATA/Big Class Families.jmp" );

dt &amp;lt;&amp;lt; Select Rows( [1] ) &amp;lt;&amp;lt; Delete Rows; // now dt starts with Louise - there is no Katie anymore!

Show(Eval List(myList1), // Katie? why Katie!!!
Eval List(myList2)); // Louise&amp;nbsp;-&amp;gt;&amp;nbsp;works!&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_2-1758660353341.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/83303iBFBDB525859FFCD8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_2-1758660353341.png" alt="hogi_2-1758660353341.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;How does it work?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Show(Type(myList1[1]), Type(myList2[1]))&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;provides more insight:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_3-1758660470227.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/83304iC0014850A812F911/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_3-1758660470227.png" alt="hogi_3-1758660470227.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;The simple list&amp;nbsp;(&lt;FONT face="courier new,courier"&gt;myList1&lt;/FONT&gt;) contains "N&lt;FONT face="courier new,courier"&gt;ames&lt;/FONT&gt;" , *)&lt;/P&gt;
&lt;P&gt;the complicated list (&lt;FONT face="courier new,courier"&gt;myList2&lt;/FONT&gt;) contains "&lt;FONT face="courier new,courier"&gt;Columns&lt;/FONT&gt;" **)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;*) When a &lt;FONT face="courier new,courier"&gt;name&lt;/FONT&gt; is evaluated, JMP follows a specific rule to determine what this name means:&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://www.jmp.com/support/help/en/19.0/#page/jmp/rules-for-resolving-names.shtml" target="_blank" rel="noopener noreferrer"&gt;https://www.jmp.com/support/help/en/19.0/#page/jmp/rules-for-resolving-names.shtml&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Among the roles, JMP will search for a column &lt;U&gt;in the current data table&lt;/U&gt; (&lt;FONT face="courier new,courier"&gt;dt2&lt;/FONT&gt;).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;**) For a&amp;nbsp; &lt;FONT face="courier new,courier"&gt;Column&lt;/FONT&gt;, JMP just has to go to THE data table ("&lt;FONT face="courier new,courier"&gt;dt&lt;/FONT&gt;") and access the column.&lt;BR /&gt;Very robust!&lt;/P&gt;</description>
      <pubDate>Wed, 24 Sep 2025 19:45:10 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/robust-column-reference/m-p/903157#M106211</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2025-09-24T19:45:10Z</dc:date>
    </item>
    <item>
      <title>Re: robust column reference</title>
      <link>https://community.jmp.com/t5/Discussions/robust-column-reference/m-p/903162#M106212</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Name Expr(As column(:col))&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;is soooo cool!&lt;/P&gt;</description>
      <pubDate>Tue, 23 Sep 2025 20:52:49 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/robust-column-reference/m-p/903162#M106212</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2025-09-23T20:52:49Z</dc:date>
    </item>
    <item>
      <title>Re: robust column reference</title>
      <link>https://community.jmp.com/t5/Discussions/robust-column-reference/m-p/903350#M106237</link>
      <description>&lt;P&gt;The Column() works in a lot of situations and its pretty flexible with respect to the format of the column name.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Distribution(
	Continuous Distribution( Column( :Random Normal )), 
	Continuous Distribution( Column( "Random Normal" )),
	Continuous Distribution( Column( :"Random Normal"n )),
	Continuous Distribution( Column( "Random Normal"n )),
	 Process Capability( 0 ) )&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 24 Sep 2025 12:38:17 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/robust-column-reference/m-p/903350#M106237</guid>
      <dc:creator>Byron_JMP</dc:creator>
      <dc:date>2025-09-24T12:38:17Z</dc:date>
    </item>
    <item>
      <title>Re: robust column reference</title>
      <link>https://community.jmp.com/t5/Discussions/robust-column-reference/m-p/903370#M106239</link>
      <description>&lt;P&gt;interesting: when asked for lists of columns, JSL functions return &lt;U&gt;lists of&amp;nbsp;&lt;FONT face="courier new,courier"&gt;names&lt;/FONT&gt;&lt;/U&gt;, not lists of&amp;nbsp;&amp;nbsp;&lt;FONT face="courier new,courier"&gt;columns!&lt;/FONT&gt;&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( "$SAMPLE_DATA/Big Class.jmp" );


colList = Eval List({Name Expr(As column("sex"))});
write(Name Expr(colList[1]), " is a  ", // :sex
Type(Name Expr(colList[1])), "\!n"); // Column -&amp;gt; universal &amp;amp; robust


selectedCols = dt &amp;lt;&amp;lt; select columns (:sex) &amp;lt;&amp;lt; get selected columns;
write(Name Expr(selectedCols[1])," is a ", // : sex
Type(Name Expr(selectedCols[1])), "\!n"); // Name -&amp;gt; fragile

dt &amp;lt;&amp;lt; Group Columns(Item Range( :sex, :height ),"myColGroup");
colsFromColumnGroup = dt &amp;lt;&amp;lt; get column group("myColGroup");
Write(Name Expr(colsFromColumnGroup[1]), " is a  ", // :sex
Type(Name Expr(colsFromColumnGroup[1])), "\!n"); // Name -&amp;gt; fragile&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_3-1758743390560.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/83397i96944B959CF28506/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_3-1758743390560.png" alt="hogi_3-1758743390560.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The difference between&amp;nbsp;&amp;nbsp;&lt;FONT face="courier new,courier"&gt;Get Column Names()&lt;/FONT&gt; and &lt;FONT face="courier new,courier"&gt;Get Column References()&lt;/FONT&gt;:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;ColNames = dt &amp;lt;&amp;lt; get column names; // default setting: returns names, not Strings 
Write(Name Expr(ColNames[3]), " is a  ", // sex (more or less the same as :sex)
Type(Name Expr(ColNames[3])), "\!n"); // Name -&amp;gt; fragile


ColRefs = dt &amp;lt;&amp;lt; get column references;
Write(Name Expr(ColRefs[3]), " is a  ", // Column("sex"
Type(Name Expr(ColRefs[3])), "\!n"); // Column -&amp;gt; robust, but not :sex, see below&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_2-1758743369920.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/83396i9CA7737DCFD7FC12/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_2-1758743369920.png" alt="hogi_2-1758743369920.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;and now let's play with the column and then ask for the value of&amp;nbsp;&amp;nbsp;&lt;FONT face="courier new,courier"&gt;:sex&lt;/FONT&gt;&amp;nbsp;in row 1:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;//hide the column
:sex &amp;lt;&amp;lt;  set name("hidden");

// who finds it?
row()=1;
Try(Show(Eval(ColList[1])), print(exception_msg));
Try(Show(Eval(colsFromColumnGroup[1])), print(exception_msg));
Try(Show(Eval(selectedCols[1])), print(exception_msg));
Try(Show(Eval(ColNames[3])), print(exception_msg));
Try(Show(Eval(ColRefs[3])), print(exception_msg));&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_0-1758743322998.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/83394i54DD205F81D3DA82/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_0-1758743322998.png" alt="hogi_0-1758743322998.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Sep 2025 19:51:41 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/robust-column-reference/m-p/903370#M106239</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2025-09-24T19:51:41Z</dc:date>
    </item>
    <item>
      <title>Re: robust column reference</title>
      <link>https://community.jmp.com/t5/Discussions/robust-column-reference/m-p/903372#M106240</link>
      <description>&lt;P&gt;Take home message:&lt;BR /&gt;&lt;BR /&gt;With the learning from&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;myList2 = Eval List({Name Expr(As column(:name)),Name Expr(As column(:sex)),Name Expr(As column(:age))});&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;we can convert any list provided by JMP into a robust list of columns via&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;ColNames = dt &amp;lt;&amp;lt; get column names;
colList = Transform Each({col}, ColNames, Name Expr(As Column (col)));&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Sep 2025 19:52:52 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/robust-column-reference/m-p/903372#M106240</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2025-09-24T19:52:52Z</dc:date>
    </item>
    <item>
      <title>Re: robust column reference</title>
      <link>https://community.jmp.com/t5/Discussions/robust-column-reference/m-p/903438#M106242</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/4386"&gt;@Byron_JMP&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;The Column() works in a lot of situations and its pretty flexible with respect to the format of the column name.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Distribution(
	Continuous Distribution( Column( :Random Normal )), 
	Continuous Distribution( Column( "Random Normal" )),
	Continuous Distribution( Column( :"Random Normal"n )),
	Continuous Distribution( Column( "Random Normal"n )),
	 Process Capability( 0 ) )&lt;/CODE&gt;&lt;/PRE&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/4386"&gt;@Byron_JMP&lt;/a&gt;&amp;nbsp;, one can have a lot of fun with &lt;FONT face="courier new,courier"&gt;Column()&lt;/FONT&gt; inside&amp;nbsp;&lt;FONT face="courier new,courier"&gt;distribution()&lt;/FONT&gt;&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( "$SAMPLE_DATA/Big Class.jmp" );

Distribution(Continuous Distribution( Column( :height )) );
Distribution(Continuous Distribution( Column( "height")) );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;A Column reference, a name - even a String!&amp;nbsp; &amp;nbsp;Everything works.&lt;/P&gt;
&lt;P&gt;... till you try to use a&amp;nbsp;&amp;nbsp;&lt;FONT face="courier new,courier"&gt;column&lt;/FONT&gt;&amp;nbsp;that is defined outside of the &lt;FONT face="courier new,courier"&gt;Distribution&lt;/FONT&gt; command:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;col = Column("height");
Show(col); // shows: it's a column
Distribution(Continuous Distribution(col));
Distribution(Continuous Distribution(Eval(col)));
Distribution(Continuous Distribution(Name Expr(col)));&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;One can try all such esoteric "Let's just try all of them - one of them should work"-Expression Handling-Tricks, none of them works!&lt;BR /&gt;&lt;BR /&gt;Always the same hint, but what does it mean?!?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_1-1758741988633.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/83389i99B7B42509C5A33C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_1-1758741988633.png" alt="hogi_1-1758741988633.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;The solution is very easy - but it can take hours when you search for it at the wrong spot.&amp;nbsp;&lt;BR /&gt;Find the solution on your own before you open&amp;nbsp;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_0-1758741758488.png" style="width: 19px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/83388iE2030B5399E0FA6A/image-dimensions/19x18?v=v2" width="19" height="18" role="button" title="hogi_0-1758741758488.png" alt="hogi_0-1758741758488.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;:backhand_index_pointing_down:&lt;/img&gt;&lt;/P&gt;
&lt;LI-SPOILER&gt;&lt;CODE class=" language-jsl"&gt;Column( :height )&lt;/CODE&gt;&amp;nbsp;inside &lt;FONT face="courier new,courier"&gt;Continuous Distribution()&lt;/FONT&gt; &lt;STRONG&gt;looks&lt;/STRONG&gt; like&amp;nbsp;&lt;FONT face="courier new,courier"&gt;Column("height")&lt;/FONT&gt; in&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;col = Column("height")&lt;/FONT&gt;;&lt;BR /&gt;But it is a &lt;EM&gt;named argument&lt;/EM&gt; - like &lt;FONT face="courier new,courier"&gt;Formula()&lt;/FONT&gt; in &lt;FONT face="courier new,courier"&gt;New Column(Formula(...))&lt;/FONT&gt;.&lt;BR /&gt;&lt;BR /&gt;So the "obvious" solution is: keep the name of the named argument and place the column inside:&lt;BR /&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Distribution(Continuous Distribution(Column(col)));&lt;/CODE&gt;&lt;/PRE&gt;
&lt;/LI-SPOILER&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Sep 2025 19:26:45 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/robust-column-reference/m-p/903438#M106242</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2025-09-24T19:26:45Z</dc:date>
    </item>
    <item>
      <title>Re: robust column reference</title>
      <link>https://community.jmp.com/t5/Discussions/robust-column-reference/m-p/904005#M106277</link>
      <description>&lt;P&gt;my approach is much more simplistic. I'm careful to build my list of columns for the specific purpose I have in mind. Sometimes I have multiple lists of the columns in different formats.&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( "$SAMPLE_DATA/Big Class.jmp" );
text = dt &amp;lt;&amp;lt; Get Column Names();
quote = dt &amp;lt;&amp;lt; Get Column Names( String );
colformat = dt &amp;lt;&amp;lt; get column reference();
quote = dt &amp;lt;&amp;lt; Get Column Names( String );
show(text, quote, colformat);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;which returns:&lt;/P&gt;
&lt;P&gt;text = {name, age, sex, height, weight};&lt;/P&gt;
&lt;P&gt;quote = {"name", "age", "sex", "height", "weight"};&lt;/P&gt;
&lt;P&gt;colformat = {Column("name"), Column("age"), Column("sex"), Column("height"), Column("weight")};&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;one of the three generally works, even if I have to resort to eval(parse())&lt;/P&gt;</description>
      <pubDate>Thu, 25 Sep 2025 18:33:42 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/robust-column-reference/m-p/904005#M106277</guid>
      <dc:creator>Byron_JMP</dc:creator>
      <dc:date>2025-09-25T18:33:42Z</dc:date>
    </item>
    <item>
      <title>Re: robust column reference</title>
      <link>https://community.jmp.com/t5/Discussions/robust-column-reference/m-p/904022#M106281</link>
      <description>&lt;P&gt;Basically, I am with you.&amp;nbsp;After taking some precaution, names are not very dangerous:&lt;BR /&gt;&lt;BR /&gt;One can argue if it's clever to rename a column after creating a column list - and then to wonder/complain that the old name doesn't work anymore.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And when working with two tables, one has to ensure that the correct data table is the current data table().&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Same with column names:&lt;BR /&gt;One can assume that JMP handles column names correctly -&amp;nbsp; even with capital letters and spaces. [find the link]&lt;BR /&gt;Or one can be cautious and follow some rules. (no collisions of names, variables and column names; caution with space, ...) and most of the day live safe without issues.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Sep 2025 20:08:26 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/robust-column-reference/m-p/904022#M106281</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2025-09-25T20:08:26Z</dc:date>
    </item>
    <item>
      <title>Re: robust column reference</title>
      <link>https://community.jmp.com/t5/Discussions/robust-column-reference/m-p/904045#M106284</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/4386"&gt;@Byron_JMP&lt;/a&gt;&amp;nbsp;, to be picky ...&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_1-1758832329226.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/83535i1DFA5ECE5420C071/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_1-1758832329226.png" alt="hogi_1-1758832329226.png" /&gt;&lt;/span&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_2-1758832336830.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/83536iFD022D5B5610CED4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_2-1758832336830.png" alt="hogi_2-1758832336830.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;get column names()&lt;/FONT&gt; returns a list of&amp;nbsp;&amp;nbsp;&lt;STRONG&gt;names ; )&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Sep 2025 20:33:55 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/robust-column-reference/m-p/904045#M106284</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2025-09-25T20:33:55Z</dc:date>
    </item>
    <item>
      <title>Re: robust column reference</title>
      <link>https://community.jmp.com/t5/Discussions/robust-column-reference/m-p/904049#M106285</link>
      <description>&lt;P&gt;Important finding - I just edited one of the first posts!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope my thoughts are understandable - at least to some users like&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/982"&gt;@Craige_Hales&lt;/a&gt;&amp;nbsp;.&lt;BR /&gt;I guess, these users will also share my astonishment/enlightenment/joy and/or :help out by confirming that it's like this, provide an explanation, or make corrections.&lt;BR /&gt;&lt;BR /&gt;Up to now I thought about &lt;FONT face="courier new,courier"&gt;As Column(col)&lt;/FONT&gt; as a way to retrieve the &lt;STRONG&gt;value of the current row&amp;nbsp;&lt;/STRONG&gt;- especially compared to &lt;FONT face="courier new,courier"&gt;Column(col)&lt;/FONT&gt; for "column access"&amp;nbsp; (you know, like in &lt;FONT face="courier new,courier"&gt;Column(col) &amp;lt;&amp;lt; get name).&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;With the inverse implication:&lt;BR /&gt;&lt;/STRONG&gt;Whenever I use :col for anything other than the "&lt;EM&gt;value of the current row&lt;/EM&gt;",then when I want to replace it with a variable, then I don't have to use &lt;FONT face="courier new,courier"&gt;As column()&lt;/FONT&gt;,&amp;nbsp; I have to &lt;EM&gt;use the other one instead&lt;/EM&gt;, namely&amp;nbsp;&lt;FONT face="courier new,courier"&gt;Column(col).&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;[I must admit that I was also puzzled by the name:&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;As &lt;U&gt;column&lt;/U&gt;()&lt;/FONT&gt; - for the function that does the inverse, get &lt;U&gt;not&lt;/U&gt; the column, but the value of the current row? you are kidding?&lt;BR /&gt;&lt;BR /&gt;another thought:&lt;BR /&gt;If &lt;FONT face="courier new,courier"&gt;As Column(col)&lt;/FONT&gt; works in such cases, then it's just because JMP corrects the error of the user automatically - or because of an esoteric effect that everybody uses but nobody explains - like in &lt;FONT face="courier new,courier"&gt;Name expr(As column(col))&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;So, I feel very comfortable now after finding out:&amp;nbsp; ....]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This &lt;U&gt;interpretation&lt;/U&gt; must be wrong. It is triggered by an automatism in JMP which might follow the idea:&lt;BR /&gt;&lt;BR /&gt;&lt;FONT color="#008080"&gt;&lt;FONT face="courier new,courier"&gt;As column(col)&lt;/FONT&gt;gives access to the &lt;U&gt;column&lt;/U&gt;.&lt;BR /&gt;If it it &lt;U&gt;evaluated&lt;/U&gt;&amp;nbsp;(&lt;FONT face="courier new,courier"&gt;Eval(As Column() ...)&lt;/FONT&gt;)i, it converts to&amp;nbsp;&amp;nbsp;&lt;FONT face="courier new,courier"&gt;column(col)[]&lt;/FONT&gt;&amp;nbsp;aka&amp;nbsp;&lt;FONT face="courier new,courier"&gt;column(col)[row()]&lt;/FONT&gt;&amp;nbsp;which can be used to access the value of the current row.&amp;nbsp;&lt;/FONT&gt;&lt;FONT color="#008080"&gt;If it is not evaluated, but used in other functions, it gives access to the column.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Why do I think that it's like this?&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( "$SAMPLE_DATA/Big Class Families.jmp" );

row()=10;

Lag(:height);                           // 60
Show(lag(Column ("height"),1));         // Column("height") !!!
Show(lag(As Column ("height"),1));     // 60 !!!

Col Mean(:height);                             // 6255
Col Mean(:height, :age);                       // 60.285...
Show(Col Mean(Column ("height")));             // 62.55 (why does it work? another automatism because it is used so often?)
Try(Show(Col Mean(Column ("height"), :age)),Print(exception_msg)); //  !!!
Show(Col Mean(As Column ("height"), :age));    // 60.285...&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;[ triggered by&amp;nbsp;&lt;A href="https://community.jmp.com/t5/Discussions/Using-numeric-objects-in-a-column-equation/m-p/903939/highlight/true#M106270" target="_blank" rel="noopener"&gt;https://community.jmp.com/t5/Discussions/Using-numeric-objects-in-a-column-equation/m-p/903939/highlight/true#M106270&lt;/A&gt;&amp;nbsp;]&lt;/P&gt;</description>
      <pubDate>Thu, 25 Sep 2025 21:25:54 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/robust-column-reference/m-p/904049#M106285</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2025-09-25T21:25:54Z</dc:date>
    </item>
    <item>
      <title>Re: robust column reference</title>
      <link>https://community.jmp.com/t5/Discussions/robust-column-reference/m-p/904137#M106296</link>
      <description>&lt;P&gt;Based on this learning, I have a specific question:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there a comprehensive overview of&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;which functions act in the spirit of&lt;BR /&gt;Eval(:col), Where(:col=1) and&amp;nbsp; Type(:col) ? &lt;BR /&gt;i.e. taking the column :col&amp;nbsp; and &lt;U style="font-family: inherit;"&gt;interpreting it as &lt;/U&gt;&lt;FONT face="courier new,courier"&gt;&lt;FONT face="courier new,courier"&gt;&lt;U&gt;:col[row()]&lt;/U&gt; ?&lt;BR /&gt;&lt;/FONT&gt;&lt;/FONT&gt;
&lt;LI-SPOILER&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;rw = Row();
Where( :age == Column( "age" )[rw] );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;/LI-SPOILER&gt;
&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;, and which functions simply &lt;/SPAN&gt;&lt;U style="font-family: inherit;"&gt;treat the column as a column&lt;/U&gt;&lt;SPAN&gt;&amp;nbsp;- without "adding &lt;/SPAN&gt;&lt;FONT face="courier new,courier"&gt;[row]&lt;/FONT&gt;&lt;SPAN&gt; for free"?&lt;BR /&gt;&lt;/SPAN&gt;like &lt;FONT face="courier new,courier"&gt;Col median(:col), Lag(:col,1)&lt;/FONT&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Which group has the most members?&lt;/P&gt;</description>
      <pubDate>Fri, 26 Sep 2025 12:41:38 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/robust-column-reference/m-p/904137#M106296</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2025-09-26T12:41:38Z</dc:date>
    </item>
    <item>
      <title>Re: robust column reference</title>
      <link>https://community.jmp.com/t5/Discussions/robust-column-reference/m-p/904238#M106319</link>
      <description>&lt;P&gt;I don't think Col Mean works in a script very well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, "60.285714286" is the value of row 10, if the column formula, Col Mean(:height,:age) were applied in a formula column in the data table.&lt;/P&gt;
&lt;P&gt;And "62.55" is the value of row 10 if it were in a formula column with Col Mean(;height).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This would be a really great way to obscure looking up values in another table, especially if the table were private.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Sep 2025 20:45:46 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/robust-column-reference/m-p/904238#M106319</guid>
      <dc:creator>Byron_JMP</dc:creator>
      <dc:date>2025-09-26T20:45:46Z</dc:date>
    </item>
    <item>
      <title>Re: robust column reference</title>
      <link>https://community.jmp.com/t5/Discussions/robust-column-reference/m-p/904242#M106322</link>
      <description>&lt;P&gt;Sorry, I’m not sure I get the point.&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( "$SAMPLE_DATA/Big Class.jmp" , Private);

col median(dt:height);

vals= dt:height &amp;lt;&amp;lt; get values();
vals=dt[0,"height"];
Median(vals);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 27 Sep 2025 03:56:48 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/robust-column-reference/m-p/904242#M106322</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2025-09-27T03:56:48Z</dc:date>
    </item>
  </channel>
</rss>

