<?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: Question:  how to use Recode to remove carriage returns in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Question-how-to-use-Recode-to-remove-carriage-returns/m-p/384956#M63525</link>
    <description>&lt;P&gt;\!r is the escape character that parses to a carriage return. Given the embedded carriage return in the below data table&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="apic.PNG" style="width: 444px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/32824iFEFF2D8052F4D6C4/image-size/large?v=v2&amp;amp;px=999" role="button" title="apic.PNG" alt="apic.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The following JSL recognizes and removes it&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = current data tahle() );
dt &amp;lt;&amp;lt; Begin Data Update;
col1 = dt &amp;lt;&amp;lt; New Column( dt:Column 1 );
col1 &amp;lt;&amp;lt; Set Name( "Column 1 2" );
dt &amp;lt;&amp;lt; Move Selected Columns( {col1}, after( dt:Column 1 ) );
dt &amp;lt;&amp;lt; Recode Column(
	dt:Column 1,
	{Map Value( _rcOrig, {"myval\!rbig", "myvalbig"}, Unmatched( _rcNow ) )},
	Update Properties( 1 ),
	Target Column( col1 )
);
dt &amp;lt;&amp;lt; End Data Update;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 13 May 2021 20:35:40 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2021-05-13T20:35:40Z</dc:date>
    <item>
      <title>Question:  how to use Recode to remove carriage returns</title>
      <link>https://community.jmp.com/t5/Discussions/Question-how-to-use-Recode-to-remove-carriage-returns/m-p/384916#M63524</link>
      <description>&lt;P&gt;One thing I noticed in JMP 16 (that is an improvement over previous versions) is that if you import data from Excel and an individual cell in the Excel worksheet has a carriage return in the cell, JMP now imports that entire cell and does not interpret that as an "end of record" and force a new row ---&amp;gt; Yay!&amp;nbsp; I've asked for that for a long time and it is great to see that change.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But now I face the issue of getting rid of the carriage return after I import the data.&amp;nbsp; I would like to use Recode (Cols &amp;gt; Recode) to do this, but I don't see a direct way to do this.&amp;nbsp; Perhaps using a Regex in in the Replace String approach would work?&amp;nbsp; Is there a good way to do this?&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2023 23:30:09 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Question-how-to-use-Recode-to-remove-carriage-returns/m-p/384916#M63524</guid>
      <dc:creator>MathStatChem</dc:creator>
      <dc:date>2023-06-10T23:30:09Z</dc:date>
    </item>
    <item>
      <title>Re: Question:  how to use Recode to remove carriage returns</title>
      <link>https://community.jmp.com/t5/Discussions/Question-how-to-use-Recode-to-remove-carriage-returns/m-p/384956#M63525</link>
      <description>&lt;P&gt;\!r is the escape character that parses to a carriage return. Given the embedded carriage return in the below data table&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="apic.PNG" style="width: 444px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/32824iFEFF2D8052F4D6C4/image-size/large?v=v2&amp;amp;px=999" role="button" title="apic.PNG" alt="apic.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The following JSL recognizes and removes it&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = current data tahle() );
dt &amp;lt;&amp;lt; Begin Data Update;
col1 = dt &amp;lt;&amp;lt; New Column( dt:Column 1 );
col1 &amp;lt;&amp;lt; Set Name( "Column 1 2" );
dt &amp;lt;&amp;lt; Move Selected Columns( {col1}, after( dt:Column 1 ) );
dt &amp;lt;&amp;lt; Recode Column(
	dt:Column 1,
	{Map Value( _rcOrig, {"myval\!rbig", "myvalbig"}, Unmatched( _rcNow ) )},
	Update Properties( 1 ),
	Target Column( col1 )
);
dt &amp;lt;&amp;lt; End Data Update;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 13 May 2021 20:35:40 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Question-how-to-use-Recode-to-remove-carriage-returns/m-p/384956#M63525</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2021-05-13T20:35:40Z</dc:date>
    </item>
  </channel>
</rss>

