<?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 JMP adding characters to string? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/JMP-adding-characters-to-string/m-p/17468#M15925</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had some code that extracted some numbers into variables, and then I put them together in a string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: Consolas; color: black;"&gt;xlocation &lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; color: navy;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; color: black;"&gt; dt1&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; color: navy;"&gt;:&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; color: black;"&gt;Die_X&lt;STRONG&gt;[&lt;/STRONG&gt;x&lt;STRONG&gt;]&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; color: navy;"&gt;;&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: Consolas; color: black;"&gt;ylocation &lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; color: navy;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; color: black;"&gt; dt1&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; color: navy;"&gt;:&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; color: black;"&gt;Die_Y&lt;STRONG&gt;[&lt;/STRONG&gt;x&lt;STRONG&gt;]&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; color: navy;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: Consolas; color: black;"&gt;site &lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; color: navy;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; color: black;"&gt; dt1&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; color: navy;"&gt;:&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; color: black;"&gt;Site&lt;STRONG&gt;[&lt;/STRONG&gt;x&lt;STRONG&gt;]&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; color: navy;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; color: black;"&gt;deviceName &lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; color: navy;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="font-family: Consolas; color: purple;"&gt;"x="&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; color: navy;"&gt;||&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; color: #0000dd;"&gt;char&lt;/SPAN&gt;&lt;STRONG style="color: black; font-family: Consolas;"&gt;(&lt;/STRONG&gt;&lt;SPAN style="font-family: Consolas; color: black;"&gt;xlocation&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; color: navy;"&gt;||&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; color: purple;"&gt;" y="&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; color: navy;"&gt;||&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; color: #0000dd;"&gt;char&lt;/SPAN&gt;&lt;STRONG style="color: black; font-family: Consolas;"&gt;(&lt;/STRONG&gt;&lt;SPAN style="font-family: Consolas; color: black;"&gt;ylocation&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; color: navy;"&gt;||&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; color: purple;"&gt;" Site"&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; color: navy;"&gt;||&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; color: #0000dd;"&gt;char&lt;/SPAN&gt;&lt;STRONG style="color: black; font-family: Consolas;"&gt;(&lt;/STRONG&gt;&lt;SPAN style="font-family: Consolas; color: black;"&gt;site&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; color: navy;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It would output something like this:&amp;nbsp; x= 8 y=2 Site2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But now it outputs this:&amp;nbsp; x=[8] y=[2] Site[2]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure what I changed.&amp;nbsp; The columns in the data table where I am extracting the variables are Numeric columns.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone have any ideas why this might be happening?&amp;nbsp; Also, I am having trouble finding an example of how to use the remove from character function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Something like this?&amp;nbsp; xlocation = Remove From(xlocation, [)?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Mar 2016 14:40:54 GMT</pubDate>
    <dc:creator>natalie_</dc:creator>
    <dc:date>2016-03-15T14:40:54Z</dc:date>
    <item>
      <title>JMP adding characters to string?</title>
      <link>https://community.jmp.com/t5/Discussions/JMP-adding-characters-to-string/m-p/17468#M15925</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had some code that extracted some numbers into variables, and then I put them together in a string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: Consolas; color: black;"&gt;xlocation &lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; color: navy;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; color: black;"&gt; dt1&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; color: navy;"&gt;:&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; color: black;"&gt;Die_X&lt;STRONG&gt;[&lt;/STRONG&gt;x&lt;STRONG&gt;]&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; color: navy;"&gt;;&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: Consolas; color: black;"&gt;ylocation &lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; color: navy;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; color: black;"&gt; dt1&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; color: navy;"&gt;:&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; color: black;"&gt;Die_Y&lt;STRONG&gt;[&lt;/STRONG&gt;x&lt;STRONG&gt;]&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; color: navy;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: Consolas; color: black;"&gt;site &lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; color: navy;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; color: black;"&gt; dt1&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; color: navy;"&gt;:&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; color: black;"&gt;Site&lt;STRONG&gt;[&lt;/STRONG&gt;x&lt;STRONG&gt;]&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; color: navy;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; color: black;"&gt;deviceName &lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; color: navy;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="font-family: Consolas; color: purple;"&gt;"x="&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; color: navy;"&gt;||&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; color: #0000dd;"&gt;char&lt;/SPAN&gt;&lt;STRONG style="color: black; font-family: Consolas;"&gt;(&lt;/STRONG&gt;&lt;SPAN style="font-family: Consolas; color: black;"&gt;xlocation&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; color: navy;"&gt;||&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; color: purple;"&gt;" y="&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; color: navy;"&gt;||&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; color: #0000dd;"&gt;char&lt;/SPAN&gt;&lt;STRONG style="color: black; font-family: Consolas;"&gt;(&lt;/STRONG&gt;&lt;SPAN style="font-family: Consolas; color: black;"&gt;ylocation&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; color: navy;"&gt;||&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; color: purple;"&gt;" Site"&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; color: navy;"&gt;||&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; color: #0000dd;"&gt;char&lt;/SPAN&gt;&lt;STRONG style="color: black; font-family: Consolas;"&gt;(&lt;/STRONG&gt;&lt;SPAN style="font-family: Consolas; color: black;"&gt;site&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; color: navy;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It would output something like this:&amp;nbsp; x= 8 y=2 Site2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But now it outputs this:&amp;nbsp; x=[8] y=[2] Site[2]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure what I changed.&amp;nbsp; The columns in the data table where I am extracting the variables are Numeric columns.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone have any ideas why this might be happening?&amp;nbsp; Also, I am having trouble finding an example of how to use the remove from character function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Something like this?&amp;nbsp; xlocation = Remove From(xlocation, [)?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Mar 2016 14:40:54 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JMP-adding-characters-to-string/m-p/17468#M15925</guid>
      <dc:creator>natalie_</dc:creator>
      <dc:date>2016-03-15T14:40:54Z</dc:date>
    </item>
    <item>
      <title>Re: JMP adding characters to string?</title>
      <link>https://community.jmp.com/t5/Discussions/JMP-adding-characters-to-string/m-p/17469#M15926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What's the value of x?&amp;nbsp; It seems that it's a list or matrix of numbers, which is then returning a matrix back to xlocation, ylocation and site.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Might have to insert logic to test x.&amp;nbsp; If it's a matrix extract the first value and use that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black;"&gt;a &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: navy;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black;"&gt; &lt;STRONG&gt;[&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;"&gt;1&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black;"&gt;]&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: navy;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black;"&gt;b &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: navy;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: #0000dd;"&gt;char&lt;/SPAN&gt;&lt;STRONG style="color: black; font-size: 10.0pt; font-family: 'Courier New';"&gt;(&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black;"&gt;a&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: navy;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: #0000dd;"&gt;print&lt;/SPAN&gt;&lt;STRONG style="color: black; font-size: 10.0pt; font-family: 'Courier New';"&gt;(&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black;"&gt;b&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: navy;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: black; font-size: 10.0pt; font-family: 'Courier New';"&gt;"[1]"&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Mar 2016 15:16:23 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JMP-adding-characters-to-string/m-p/17469#M15926</guid>
      <dc:creator>pmroz</dc:creator>
      <dc:date>2016-03-15T15:16:23Z</dc:date>
    </item>
    <item>
      <title>Re: JMP adding characters to string?</title>
      <link>https://community.jmp.com/t5/Discussions/JMP-adding-characters-to-string/m-p/17470#M15927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is the column a JMP 12 expression column holding a matrix?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's a debugging idea that might shed some insight.&amp;nbsp; The type() function will tell you the data type of the value in a JSL variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;x=42;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;show(x,type(x),char(x));&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;x=[3.14];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;show(x,type(x),char(x));&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;x = 42;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Type(x) = "Number";&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Char(x) = "42";&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;x = [3.14];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Type(x) = "Matrix";&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Char(x) = "[3.14]";&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Mar 2016 15:16:25 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JMP-adding-characters-to-string/m-p/17470#M15927</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2016-03-15T15:16:25Z</dc:date>
    </item>
    <item>
      <title>Re: JMP adding characters to string?</title>
      <link>https://community.jmp.com/t5/Discussions/JMP-adding-characters-to-string/m-p/17471#M15928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks PMroz and Craige, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It was a matrix.&amp;nbsp; No idea why it suddenly changed to a matrix though.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Mar 2016 15:46:00 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JMP-adding-characters-to-string/m-p/17471#M15928</guid>
      <dc:creator>natalie_</dc:creator>
      <dc:date>2016-03-15T15:46:00Z</dc:date>
    </item>
  </channel>
</rss>

