<?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: Modifying Column names in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Modifying-Column-names/m-p/681150#M86670</link>
    <description>&lt;P&gt;Thanks but that did not work for some reason.&lt;/P&gt;&lt;P&gt;I opted out to export and import back from Excel after fixing the tables headers.&lt;/P&gt;&lt;P&gt;It is just hard to understand why JMP have no such simple capability compared to excel which does it in a couple of clicks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ashraf&lt;/P&gt;</description>
    <pubDate>Mon, 25 Sep 2023 22:12:11 GMT</pubDate>
    <dc:creator>AshrafFathy</dc:creator>
    <dc:date>2023-09-25T22:12:11Z</dc:date>
    <item>
      <title>Modifying Column names</title>
      <link>https://community.jmp.com/t5/Discussions/Modifying-Column-names/m-p/679519#M86558</link>
      <description>&lt;P&gt;Hi, I have the column header very long after I extract from STDF data file.&lt;/P&gt;&lt;P&gt;Here is the format I have&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;TestName..... &amp;nbsp;&amp;lt;&amp;gt; Test Name2....&lt;/P&gt;&lt;P&gt;How can I make the column header only have the Test Name2.... &amp;nbsp;and remove every thing else without having to export and import from Excel.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Sep 2023 20:05:37 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Modifying-Column-names/m-p/679519#M86558</guid>
      <dc:creator>AshrafFathy</dc:creator>
      <dc:date>2023-09-19T20:05:37Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying Column names</title>
      <link>https://community.jmp.com/t5/Discussions/Modifying-Column-names/m-p/679524#M86559</link>
      <description>&lt;P&gt;Is there a standard delimiter that separates TestName from Test Name2?&amp;nbsp; If not a delimiter, is there a standard structure for TestName?&lt;/P&gt;</description>
      <pubDate>Tue, 19 Sep 2023 20:19:15 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Modifying-Column-names/m-p/679524#M86559</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2023-09-19T20:19:15Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying Column names</title>
      <link>https://community.jmp.com/t5/Discussions/Modifying-Column-names/m-p/679527#M86560</link>
      <description>&lt;P&gt;The only standard delimiter is &amp;nbsp;&lt;U&gt;&lt;STRONG&gt;&amp;lt;&amp;gt;&lt;/STRONG&gt;&lt;/U&gt; . Also, the number of characters in the test name and test name 2 are different.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Sep 2023 20:33:07 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Modifying-Column-names/m-p/679527#M86560</guid>
      <dc:creator>AshrafFathy</dc:creator>
      <dc:date>2023-09-19T20:33:07Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying Column names</title>
      <link>https://community.jmp.com/t5/Discussions/Modifying-Column-names/m-p/679545#M86563</link>
      <description>&lt;P&gt;Here is an example of how to change the name to the second name in the test name&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;names default to here(1);
dt=New Table( "Example",
	Add Rows( 0 ),
	New Column( "thisisatestname00001abc&amp;lt;&amp;gt;andthesecondname&amp;lt;&amp;gt;andmoreinfo",
		Numeric,
		"Continuous",
		Format( "Best", 12 ),
		Set Selected,
		Set Values( [] )
	)
);

wait(5);

column(1)&amp;lt;&amp;lt;set name(word(2,column(1)&amp;lt;&amp;lt;get name,"&amp;lt;&amp;gt;"))&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 19 Sep 2023 21:44:24 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Modifying-Column-names/m-p/679545#M86563</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2023-09-19T21:44:24Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying Column names</title>
      <link>https://community.jmp.com/t5/Discussions/Modifying-Column-names/m-p/681150#M86670</link>
      <description>&lt;P&gt;Thanks but that did not work for some reason.&lt;/P&gt;&lt;P&gt;I opted out to export and import back from Excel after fixing the tables headers.&lt;/P&gt;&lt;P&gt;It is just hard to understand why JMP have no such simple capability compared to excel which does it in a couple of clicks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ashraf&lt;/P&gt;</description>
      <pubDate>Mon, 25 Sep 2023 22:12:11 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Modifying-Column-names/m-p/681150#M86670</guid>
      <dc:creator>AshrafFathy</dc:creator>
      <dc:date>2023-09-25T22:12:11Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying Column names</title>
      <link>https://community.jmp.com/t5/Discussions/Modifying-Column-names/m-p/681156#M86671</link>
      <description>&lt;P&gt;Provide me with a real example and I will see what the issue is.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Sep 2023 01:04:11 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Modifying-Column-names/m-p/681156#M86671</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2023-09-26T01:04:11Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying Column names</title>
      <link>https://community.jmp.com/t5/Discussions/Modifying-Column-names/m-p/681176#M86674</link>
      <description>&lt;P&gt;JMP does offer you with Recode Column Names&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1695706566199.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/56974iE9C3839F89BB4611/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1695706566199.png" alt="jthi_0-1695706566199.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;and Extract Segment could be something which works here&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_1-1695706600402.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/56975i0756E7D739CDD322/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_1-1695706600402.png" alt="jthi_1-1695706600402.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_2-1695706632905.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/56976i7B3E80C19541632E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_2-1695706632905.png" alt="jthi_2-1695706632905.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Sep 2023 05:38:37 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Modifying-Column-names/m-p/681176#M86674</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2023-09-26T05:38:37Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying Column names</title>
      <link>https://community.jmp.com/t5/Discussions/Modifying-Column-names/m-p/681340#M86693</link>
      <description>&lt;P&gt;Thanks. I tried the Recode already several time and the extract segment and that did not work either.&lt;/P&gt;&lt;P&gt;It seems because the number of characters before and after the &amp;lt;&amp;gt; symbol varies from one test name to another, I end up with some test names segmented and other not fro some reason.&lt;/P&gt;&lt;P&gt;Ashraf&lt;/P&gt;</description>
      <pubDate>Tue, 26 Sep 2023 18:08:48 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Modifying-Column-names/m-p/681340#M86693</guid>
      <dc:creator>AshrafFathy</dc:creator>
      <dc:date>2023-09-26T18:08:48Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying Column names</title>
      <link>https://community.jmp.com/t5/Discussions/Modifying-Column-names/m-p/681347#M86695</link>
      <description>&lt;P&gt;Here is another attempt in finding a solution for you.&amp;nbsp; The script first creates a sample data table, then it adds a new column that takes the second element from the original test name.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_0-1695754324106.png" style="width: 876px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/56988i6B22DF0ACDF66C1A/image-dimensions/876x404?v=v2" width="876" height="404" role="button" title="txnelson_0-1695754324106.png" alt="txnelson_0-1695754324106.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;names default to here(1);
dt=new table("example",
	new column( "TestName", Character),
	add rows( 100 )
);

// Create sample data
characterPool = "kj;adoilkz;vclkeiop8uyhvjnbuiaedriuna;lkdalkiouie;lkakjfloauifadkjfbvsa;ihdiekd";
for each row(
	:Test Name = "";
	For( i=1, i&amp;lt;=floor(random uniform(2,4)), i++,
		:TestName = :testName || substr(characterPool,floor(random uniform(1,length(characterPool)-1))) ||"&amp;lt;&amp;gt;";
		if(i&amp;gt;2,show(row()))
));


// Create a new column with only the 2nd element of the Test Names
dt &amp;lt;&amp;lt; new column("Short Test Name", character,
	formula(word(2,:Test Name,"&amp;lt;&amp;gt;") )
)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Sep 2023 18:52:53 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Modifying-Column-names/m-p/681347#M86695</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2023-09-26T18:52:53Z</dc:date>
    </item>
  </channel>
</rss>

