<?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 Column referencing: What is the difference between Column(&amp;quot;Example&amp;quot;) and :Name(&amp;quot;Example&amp;quot;)? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Column-referencing-What-is-the-difference-between-Column-quot/m-p/43175#M24999</link>
    <description>&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;By googling examples, I kinda get the hang of when to use Column("Example") and :Name("Example"). When used in summary table and equality conditions, I use :Name("Example"). Meanwhile, I use Column("Example") when changing column properties.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I still fail to understand the difference between the two, concept-wise. Can anyone give insights to help me understand the difference between the two?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Shaira&lt;/P&gt;</description>
    <pubDate>Mon, 14 Aug 2017 06:31:00 GMT</pubDate>
    <dc:creator>shaira</dc:creator>
    <dc:date>2017-08-14T06:31:00Z</dc:date>
    <item>
      <title>Column referencing: What is the difference between Column("Example") and :Name("Example")?</title>
      <link>https://community.jmp.com/t5/Discussions/Column-referencing-What-is-the-difference-between-Column-quot/m-p/43175#M24999</link>
      <description>&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;By googling examples, I kinda get the hang of when to use Column("Example") and :Name("Example"). When used in summary table and equality conditions, I use :Name("Example"). Meanwhile, I use Column("Example") when changing column properties.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I still fail to understand the difference between the two, concept-wise. Can anyone give insights to help me understand the difference between the two?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Shaira&lt;/P&gt;</description>
      <pubDate>Mon, 14 Aug 2017 06:31:00 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Column-referencing-What-is-the-difference-between-Column-quot/m-p/43175#M24999</guid>
      <dc:creator>shaira</dc:creator>
      <dc:date>2017-08-14T06:31:00Z</dc:date>
    </item>
    <item>
      <title>Re: Column referencing: What is the difference between Column("Example") and :Name("E</title>
      <link>https://community.jmp.com/t5/Discussions/Column-referencing-What-is-the-difference-between-Column-quot/m-p/43222#M25020</link>
      <description>&lt;P&gt;There are lots of ways to reference a column. For Example:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
Open( "$SAMPLE_DATA/Big Class.jmp" );
a = Column( 4 )[1] + Column( 4 )[2];
b = Column( 4 )[1] + :name( "height" )[2];
c = Column( 4 )[1] + Column( "height" )[2];
d = Column( 4 )[1] + :height[2];
Show( a, b, c, d );

:Age &amp;lt;&amp;lt; Color Cells( "Red" );
Column( 4 ) &amp;lt;&amp;lt; Color Cells( "blue" );
:name( "weight" ) &amp;lt;&amp;lt; Color Cells( "green" );

:height &amp;lt;&amp;lt; Set Property( "Units", inches );
column(5)&amp;lt;&amp;lt; set property( "Units", lbs);
:name("weight")&amp;lt;&amp;lt;get property ("Units");

Distribution(Continuous Distribution( Column( :height )));
Distribution(Continuous Distribution( Column( :name("weight") )));
Distribution(Continuous Distribution( Column( 5 )));
Distribution(Continuous Distribution( Column( "height" )));


&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;how you reference a column depends on what you are trying to do, and what's convenient.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Aug 2017 22:49:46 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Column-referencing-What-is-the-difference-between-Column-quot/m-p/43222#M25020</guid>
      <dc:creator>Byron_JMP</dc:creator>
      <dc:date>2017-08-14T22:49:46Z</dc:date>
    </item>
    <item>
      <title>Re: Column referencing: What is the difference between Column("Example") and :Name("E</title>
      <link>https://community.jmp.com/t5/Discussions/Column-referencing-What-is-the-difference-between-Column-quot/m-p/43248#M25038</link>
      <description>&lt;P&gt;I believe, too, that &lt;STRONG&gt;Name()&lt;/STRONG&gt; is not a JSL&amp;nbsp;function but a &lt;EM&gt;directive&lt;/EM&gt; to the &lt;EM&gt;JSL interpreter&lt;/EM&gt;. It is meant to help the interpreter handle improper names when a user saves a script. (For example, click the red triangle at the top of a&amp;nbsp;platform and select Save Script &amp;gt; To Data&amp;nbsp;Table.)&amp;nbsp;On the other hand, the &lt;STRONG&gt;Column()&lt;/STRONG&gt; function is intended for us to obtain a valid column reference given a column index or proper name and optionally a data table reference.&lt;/P&gt;
&lt;P&gt;I don't use the &lt;STRONG&gt;Name()&lt;/STRONG&gt; directive in my scripts. That practice&amp;nbsp;is a matter of personal choice and scripting style.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Aug 2017 12:38:17 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Column-referencing-What-is-the-difference-between-Column-quot/m-p/43248#M25038</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2017-08-15T12:38:17Z</dc:date>
    </item>
    <item>
      <title>Re: Column referencing: What is the difference between Column("Example") and :Name("E</title>
      <link>https://community.jmp.com/t5/Discussions/Column-referencing-What-is-the-difference-between-Column-quot/m-p/43269#M25049</link>
      <description>&lt;P&gt;One other wrinkle to keep in mind. &amp;nbsp;Sometimes &lt;STRONG&gt;column("Column Name")&lt;/STRONG&gt; doesn't work. &amp;nbsp;Instead you have to say &lt;STRONG&gt;AS Column("Column Name")&lt;/STRONG&gt;. I've had to use this reference method for get rows where and with new column formulas. For example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;match_rows = rts_signal_detail_report_dt &amp;lt;&amp;lt; get rows where(as column(rts_signal_detail_report_dt, one_col) == "Y");


xl_dt &amp;lt;&amp;lt; new column("TMP_AER#VER", character, nominal, 
 formula(as column(xl_col1) || "#" || char(as column(xl_col2))));&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I found this out by trial and error. &amp;nbsp;I.e. it didn't work using the regular column() reference, so I tried AS Column and it worked.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Aug 2017 15:47:56 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Column-referencing-What-is-the-difference-between-Column-quot/m-p/43269#M25049</guid>
      <dc:creator>pmroz</dc:creator>
      <dc:date>2017-08-15T15:47:56Z</dc:date>
    </item>
    <item>
      <title>Re: Column referencing: What is the difference between Column("Example") and :Name("E</title>
      <link>https://community.jmp.com/t5/Discussions/Column-referencing-What-is-the-difference-between-Column-quot/m-p/43298#M25066</link>
      <description>&lt;P&gt;Thank you all for the input.&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/4550"&gt;@pmroz&lt;/a&gt;Now, I am curious why some column references work, while others don't. But I'll keep this in mind. Thanks for sharing this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shaira&lt;/P&gt;</description>
      <pubDate>Wed, 16 Aug 2017 01:01:28 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Column-referencing-What-is-the-difference-between-Column-quot/m-p/43298#M25066</guid>
      <dc:creator>shaira</dc:creator>
      <dc:date>2017-08-16T01:01:28Z</dc:date>
    </item>
    <item>
      <title>Re: Column referencing: What is the difference between Column("Example") and :Name("E</title>
      <link>https://community.jmp.com/t5/Discussions/Column-referencing-What-is-the-difference-between-Column-quot/m-p/671363#M85934</link>
      <description>&lt;P&gt;Hello Mark,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In example below, I am matching Age, Height, and Blood columns for a data table (dt) to a lookup table (dtLUT).&lt;/P&gt;&lt;P&gt;The &lt;CODE class=" language-jsl"&gt;Column(out) == Column(out)&lt;/CODE&gt; is accepted in some machines running this script, but not for others.&lt;/P&gt;&lt;P&gt;May I know if calling the Column function with a variable is only supported in specific JMP versions ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;list = { "Age_Group", "Height_Group", "Blood_Group" };
n = N Items (list);
for (v=1, v&amp;lt;n+1, v++,
	out = Regex (list[v], "^(\S+)_Group$", "\1");
	// dt and dtLUT already opened earlier
	dt &amp;lt;&amp;lt; Update (
		With (dtLUT),
		Match Columns (Column(out) == Column(out))
	);
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 25 Aug 2023 13:33:08 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Column-referencing-What-is-the-difference-between-Column-quot/m-p/671363#M85934</guid>
      <dc:creator>ylee</dc:creator>
      <dc:date>2023-08-25T13:33:08Z</dc:date>
    </item>
    <item>
      <title>Re: Column referencing: What is the difference between Column("Example") and :Name("E</title>
      <link>https://community.jmp.com/t5/Discussions/Column-referencing-What-is-the-difference-between-Column-quot/m-p/671392#M85939</link>
      <description>&lt;P&gt;The problem might be the syntax for the &lt;STRONG&gt;&amp;lt;&amp;lt; Update(... )&lt;/STRONG&gt; message. Try this syntax for &lt;STRONG&gt;Match Columns()&lt;/STRONG&gt; argument:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Match Columns (Column(out) = Column(out))&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You are not testing equality. You are specifying a match. See the syntax for this message in the Scripting Index:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="match.PNG" style="width: 804px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/56013i58881FFADDADF03C/image-size/large?v=v2&amp;amp;px=999" role="button" title="match.PNG" alt="match.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Aug 2023 16:45:44 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Column-referencing-What-is-the-difference-between-Column-quot/m-p/671392#M85939</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2023-08-25T16:45:44Z</dc:date>
    </item>
    <item>
      <title>Re: Column referencing: What is the difference between Column("Example") and :Name("E</title>
      <link>https://community.jmp.com/t5/Discussions/Column-referencing-What-is-the-difference-between-Column-quot/m-p/671587#M85956</link>
      <description>&lt;P&gt;I figured out the problem was not related to scripting / environment.&amp;nbsp; Please ignore my question above, my apologies for the confusion.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Aug 2023 02:36:40 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Column-referencing-What-is-the-difference-between-Column-quot/m-p/671587#M85956</guid>
      <dc:creator>ylee</dc:creator>
      <dc:date>2023-08-28T02:36:40Z</dc:date>
    </item>
  </channel>
</rss>

