<?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: How to joining two columns with JSL in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-joining-two-columns-with-JSL/m-p/580607#M78758</link>
    <description>&lt;P&gt;It's amazing how easy such things are in JMP - even by hand (no problem if the patterns are irregular and the table has 5 mio entries).&lt;/P&gt;&lt;P&gt;Just watch this video by&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/3552"&gt;@brady_brady&lt;/a&gt;&amp;nbsp;:&amp;nbsp;&lt;BR /&gt;&lt;LI-MESSAGE title="Columns Menu" uid="258769" url="https://community.jmp.com/t5/JMP-On-Air/Columns-Menu/m-p/258769#U258769" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-tkb-thread lia-fa-icon lia-fa-tkb lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;&amp;nbsp;(~ 2min)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Alternative approach:&amp;nbsp;&lt;/P&gt;&lt;P&gt;use the&amp;nbsp;&lt;LI-MESSAGE title="Merge Columns add-in" uid="467262" url="https://community.jmp.com/t5/JMP-Add-Ins/Merge-Columns-add-in/m-p/467262#U467262" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-tkb-thread lia-fa-icon lia-fa-tkb lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;&amp;nbsp;by&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/681"&gt;@john_madden&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 28 Jun 2023 16:47:07 GMT</pubDate>
    <dc:creator>hogi</dc:creator>
    <dc:date>2023-06-28T16:47:07Z</dc:date>
    <item>
      <title>How to joining two columns with JSL</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-joining-two-columns-with-JSL/m-p/35167#M20748</link>
      <description>&lt;P&gt;Hi I am new to JSL, and I got stuck in a seemlily easy task.&lt;/P&gt;&lt;P&gt;Say I have two columns A and B, and have some missing values.&lt;/P&gt;&lt;P&gt;I'd like to create a new column to be the join of column A and B.&lt;/P&gt;&lt;P&gt;As shown in example below.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&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="Snap278.bmp" style="width: 247px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/4977iCC79ABDA09AB54A2/image-size/large?v=v2&amp;amp;px=999" role="button" title="Snap278.bmp" alt="Snap278.bmp" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2017 00:51:10 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-joining-two-columns-with-JSL/m-p/35167#M20748</guid>
      <dc:creator>pomemelom</dc:creator>
      <dc:date>2017-02-01T00:51:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to joining two columns with JSL</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-joining-two-columns-with-JSL/m-p/35168#M20749</link>
      <description>&lt;P&gt;Here is a couple of simple examples&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/big class.jmp" );

dt &amp;lt;&amp;lt; New Column( "New Column", character, formula( name || sex ) );

// or 
dt &amp;lt;&amp;lt; New Column( "Second New Column", character );
For( i = 1, i &amp;lt;= N Rows( dt ), i++,
	dt:Second New Column[i] = dt:name[i] || dt:sex[i]
)are&lt;/CODE&gt;&amp;nbsp;&lt;/PRE&gt;</description>
      <pubDate>Wed, 01 Feb 2017 01:17:04 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-joining-two-columns-with-JSL/m-p/35168#M20749</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2017-02-01T01:17:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to joining two columns with JSL</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-joining-two-columns-with-JSL/m-p/43535#M25194</link>
      <description>&lt;P&gt;I am having the same issue, but the code provided here does not work. &amp;nbsp;I am dealing with continuous data, perhaps that is the problem? Or is it that my variable names are longer than SAS allows, so using them in JSL creates an error?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My data subset looks like such:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;StdURM1BLFI&lt;/TD&gt;&lt;TD&gt;StdURM1BLMI&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;.&lt;/TD&gt;&lt;TD&gt;.&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;-0.0316815&lt;/TD&gt;&lt;TD&gt;.&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;.&lt;/TD&gt;&lt;TD&gt;-0.33056098&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;and I would like the third column to contain the data from the other two (or keep a missing data value as necessary), e.g.:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN&gt;StdURM1BLFI&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;StdURM1BLMI&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;Zscore&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;.&lt;/TD&gt;&lt;TD&gt;.&lt;/TD&gt;&lt;TD&gt;.&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN&gt;-0.0316815&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;.&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;-0.0316815&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;-0.33056098&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;-0.33056098&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2017 19:36:07 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-joining-two-columns-with-JSL/m-p/43535#M25194</guid>
      <dc:creator>meperry</dc:creator>
      <dc:date>2017-08-23T19:36:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to joining two columns with JSL</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-joining-two-columns-with-JSL/m-p/43571#M25207</link>
      <description>&lt;P&gt;So long as only one of the two columns has a non missing value, you could try 'Sum()'. Look at the formula in the table below:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;New Table( "Both",
	Add Rows( 4 ),
	New Column( "a",
		Numeric,
		"Continuous",
		Format( "Best", 12 ),
		Set Values( [., 1, ., 3] )
	),
	New Column( "b",
		Numeric,
		"Continuous",
		Format( "Best", 12 ),
		Set Values( [., ., 2, 4] )
	),
	New Column( "c",
		Numeric,
		"Continuous",
		Format( "Best", 12 ),
		Formula( Sum( :a, :b ) )
	)
)&lt;/CODE&gt;&amp;nbsp;e&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Aug 2017 08:01:25 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-joining-two-columns-with-JSL/m-p/43571#M25207</guid>
      <dc:creator>ian_jmp</dc:creator>
      <dc:date>2017-08-24T08:01:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to joining two columns with JSL</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-joining-two-columns-with-JSL/m-p/43602#M25229</link>
      <description>&lt;P&gt;The sum function works! &amp;nbsp;Thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 24 Aug 2017 15:46:41 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-joining-two-columns-with-JSL/m-p/43602#M25229</guid>
      <dc:creator>meperry</dc:creator>
      <dc:date>2017-08-24T15:46:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to joining two columns with JSL</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-joining-two-columns-with-JSL/m-p/580607#M78758</link>
      <description>&lt;P&gt;It's amazing how easy such things are in JMP - even by hand (no problem if the patterns are irregular and the table has 5 mio entries).&lt;/P&gt;&lt;P&gt;Just watch this video by&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/3552"&gt;@brady_brady&lt;/a&gt;&amp;nbsp;:&amp;nbsp;&lt;BR /&gt;&lt;LI-MESSAGE title="Columns Menu" uid="258769" url="https://community.jmp.com/t5/JMP-On-Air/Columns-Menu/m-p/258769#U258769" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-tkb-thread lia-fa-icon lia-fa-tkb lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;&amp;nbsp;(~ 2min)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Alternative approach:&amp;nbsp;&lt;/P&gt;&lt;P&gt;use the&amp;nbsp;&lt;LI-MESSAGE title="Merge Columns add-in" uid="467262" url="https://community.jmp.com/t5/JMP-Add-Ins/Merge-Columns-add-in/m-p/467262#U467262" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-tkb-thread lia-fa-icon lia-fa-tkb lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;&amp;nbsp;by&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/681"&gt;@john_madden&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jun 2023 16:47:07 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-joining-two-columns-with-JSL/m-p/580607#M78758</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2023-06-28T16:47:07Z</dc:date>
    </item>
  </channel>
</rss>

