<?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 a column in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Renaming-a-column/m-p/2762#M2762</link>
    <description>Thanks....that works.</description>
    <pubDate>Tue, 21 Dec 2010 19:11:14 GMT</pubDate>
    <dc:creator>asvp</dc:creator>
    <dc:date>2010-12-21T19:11:14Z</dc:date>
    <item>
      <title>Renaming a column</title>
      <link>https://community.jmp.com/t5/Discussions/Renaming-a-column/m-p/2760#M2760</link>
      <description>I am trying to rename a column using the following script but it does not work, can anyone tell me what is wrong with this script? are there better ways to rename columns?&lt;BR /&gt;&lt;BR /&gt; col2 = Column(2);&lt;BR /&gt; col2 = Set Name ("XYZ");&lt;BR /&gt;&lt;BR /&gt;Thanks.</description>
      <pubDate>Tue, 21 Dec 2010 17:33:26 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Renaming-a-column/m-p/2760#M2760</guid>
      <dc:creator>asvp</dc:creator>
      <dc:date>2010-12-21T17:33:26Z</dc:date>
    </item>
    <item>
      <title>Re: Renaming a column</title>
      <link>https://community.jmp.com/t5/Discussions/Renaming-a-column/m-p/2761#M2761</link>
      <description>You're close.  Try this instead:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;col2 = Column(2);&lt;BR /&gt;col2 &amp;lt;&amp;lt; Set Name ("XYZ");</description>
      <pubDate>Tue, 21 Dec 2010 17:53:35 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Renaming-a-column/m-p/2761#M2761</guid>
      <dc:creator>pmroz</dc:creator>
      <dc:date>2010-12-21T17:53:35Z</dc:date>
    </item>
    <item>
      <title>Re: Renaming a column</title>
      <link>https://community.jmp.com/t5/Discussions/Renaming-a-column/m-p/2762#M2762</link>
      <description>Thanks....that works.</description>
      <pubDate>Tue, 21 Dec 2010 19:11:14 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Renaming-a-column/m-p/2762#M2762</guid>
      <dc:creator>asvp</dc:creator>
      <dc:date>2010-12-21T19:11:14Z</dc:date>
    </item>
    <item>
      <title>Re: Renaming a column</title>
      <link>https://community.jmp.com/t5/Discussions/Renaming-a-column/m-p/2763#M2763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can also use munger to change part of the name of a column. This is useful after "tabulate" or "summary" specially if you iterate through the different variables.&lt;/P&gt;&lt;P&gt;eg one variable&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;column&lt;/SPAN&gt;(data_table&lt;SPAN class="s2"&gt;,2&lt;/SPAN&gt;)&lt;SPAN class="s2"&gt;&amp;lt;&amp;lt;&lt;/SPAN&gt;set name(&lt;SPAN class="s1"&gt;munger&lt;/SPAN&gt;(&lt;SPAN class="s1"&gt;munger&lt;/SPAN&gt;(&lt;SPAN class="s1"&gt;eval&lt;/SPAN&gt;(&lt;SPAN class="s1"&gt;char&lt;/SPAN&gt;(&lt;SPAN class="s1"&gt;column&lt;/SPAN&gt;(data_table&lt;SPAN class="s2"&gt;,2&lt;/SPAN&gt;)))&lt;SPAN class="s2"&gt;,&lt;/SPAN&gt;&lt;SPAN class="s3"&gt;1&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;,&lt;/SPAN&gt;&lt;SPAN class="s4"&gt;"Column(\!"text_that_you_want_to_change "&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;,&lt;/SPAN&gt;&lt;SPAN class="s4"&gt;""&lt;/SPAN&gt;)&lt;SPAN class="s2"&gt;,&lt;/SPAN&gt;&lt;SPAN class="s3"&gt;1&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;,&lt;/SPAN&gt;&lt;SPAN class="s4"&gt;")\!")"&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;,&lt;/SPAN&gt;&lt;SPAN class="s4"&gt;""&lt;/SPAN&gt;))&lt;SPAN class="s2"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s2"&gt;eg all variables&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;for&lt;/SPAN&gt;(i&lt;SPAN class="s2"&gt;=&lt;/SPAN&gt;&lt;SPAN class="s3"&gt;1&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;,&lt;/SPAN&gt;i&lt;SPAN class="s2"&gt;&amp;lt;=&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;n col&lt;/SPAN&gt;(data_table)&lt;SPAN class="s2"&gt;,&lt;/SPAN&gt;i&lt;SPAN class="s2"&gt;++,&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;column&lt;/SPAN&gt;(data_table&lt;SPAN class="s2"&gt;,&lt;/SPAN&gt;i)&lt;SPAN class="s2"&gt;&amp;lt;&amp;lt;&lt;/SPAN&gt;set name(&lt;SPAN class="s1"&gt;munger&lt;/SPAN&gt;(&lt;SPAN class="s1"&gt;munger&lt;/SPAN&gt;(&lt;SPAN class="s1"&gt;eval&lt;/SPAN&gt;(&lt;SPAN class="s1"&gt;char&lt;/SPAN&gt;(&lt;SPAN class="s1"&gt;column&lt;/SPAN&gt;(data_table&lt;SPAN class="s2"&gt;,&lt;/SPAN&gt;i)))&lt;SPAN class="s2"&gt;,&lt;/SPAN&gt;&lt;SPAN class="s3"&gt;1&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;,&lt;/SPAN&gt;&lt;SPAN class="s4"&gt;"Column(\!"text_that_you_want_to_change "&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;,&lt;/SPAN&gt;&lt;SPAN class="s4"&gt;""&lt;/SPAN&gt;)&lt;SPAN class="s2"&gt;,&lt;/SPAN&gt;&lt;SPAN class="s3"&gt;1&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;,&lt;/SPAN&gt;&lt;SPAN class="s4"&gt;")\!")"&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;,&lt;/SPAN&gt;&lt;SPAN class="s4"&gt;""&lt;/SPAN&gt;)))&lt;SPAN class="s2"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jan 2013 21:28:15 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Renaming-a-column/m-p/2763#M2763</guid>
      <dc:creator>jorgeramosdealm</dc:creator>
      <dc:date>2013-01-29T21:28:15Z</dc:date>
    </item>
  </channel>
</rss>

