<?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: Renaming columns by position in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Renaming-columns-by-position/m-p/330021#M57930</link>
    <description>&lt;P&gt;I found something that goes into the direction what I am looking for:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;col = Column( 2 );
col &amp;lt;&amp;lt; Set Name( "Lot" );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;found here:&amp;nbsp;&lt;A href="https://www.jmp.com/support/help/en/15.1/index.shtml#page/jmp/column-attributes.shtml" target="_blank" rel="noopener"&gt;https://www.jmp.com/support/help/en/15.1/index.shtml#page/jmp/column-attributes.shtml&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I find it confusing though, why it does not take a syntax like datable:column(position). This way the code only accesses the last opened data table, which forces me to have that open and is unprecise when working with multiple tables.&lt;/P&gt;
&lt;P&gt;Anywho, case closed for now.&lt;/P&gt;</description>
    <pubDate>Thu, 05 Nov 2020 14:35:16 GMT</pubDate>
    <dc:creator>HenningWeiss</dc:creator>
    <dc:date>2020-11-05T14:35:16Z</dc:date>
    <item>
      <title>Renaming columns by position</title>
      <link>https://community.jmp.com/t5/Discussions/Renaming-columns-by-position/m-p/329996#M57927</link>
      <description>&lt;P&gt;Dear JMP Community,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would like to rename a column/columns by position. I am creating a subset of a dataset and each time I run the code it counts up some column names. This makes it cumbersome to use this subset in subsequent code because the column names are always different.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;dt is my big dataset&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt &amp;lt;&amp;lt; select where( :ScreenCaption == "XYZ" ); //mark the rows in which ScreenCaption == "XYZ"
dt2 = dt &amp;lt;&amp;lt; Subset( Output Table( "Subset" ), SelectedRows( 1 ), SelectedColumns( 0 ) ); //create the subset using marked rows

dt3 = dt2 &amp;lt;&amp;lt; summary(
    Group( :Lot ),
    Mean( :Value ),
    Std Dev( :Value ),
    statistics column name format( "column" )
); // intermediate data table dt3 to calc statistical values
dt_joined = dt2 &amp;lt;&amp;lt; join( with( dt3 ), by Matching columns( :Lot ) ); // join both intermediate data tables together
&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;its in the dt_joined where the column name always changes due to taking in data from the Subset table.&lt;/P&gt;
&lt;P&gt;I would like to then access dt_joined and change column name of column, lets say 2, to be a fixed name, to better access it subsequently.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does anyone have an idea. Maybe I am also overcomplicating things I have the feeling.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best, Henning&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2023 23:21:52 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Renaming-columns-by-position/m-p/329996#M57927</guid>
      <dc:creator>HenningWeiss</dc:creator>
      <dc:date>2023-06-10T23:21:52Z</dc:date>
    </item>
    <item>
      <title>Re: Renaming columns by position</title>
      <link>https://community.jmp.com/t5/Discussions/Renaming-columns-by-position/m-p/330021#M57930</link>
      <description>&lt;P&gt;I found something that goes into the direction what I am looking for:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;col = Column( 2 );
col &amp;lt;&amp;lt; Set Name( "Lot" );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;found here:&amp;nbsp;&lt;A href="https://www.jmp.com/support/help/en/15.1/index.shtml#page/jmp/column-attributes.shtml" target="_blank" rel="noopener"&gt;https://www.jmp.com/support/help/en/15.1/index.shtml#page/jmp/column-attributes.shtml&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I find it confusing though, why it does not take a syntax like datable:column(position). This way the code only accesses the last opened data table, which forces me to have that open and is unprecise when working with multiple tables.&lt;/P&gt;
&lt;P&gt;Anywho, case closed for now.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Nov 2020 14:35:16 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Renaming-columns-by-position/m-p/330021#M57930</guid>
      <dc:creator>HenningWeiss</dc:creator>
      <dc:date>2020-11-05T14:35:16Z</dc:date>
    </item>
  </channel>
</rss>

