<?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: Merge both character matrix and numeric Matrix in SAS/IML Software and Matrix Computations</title>
    <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Merge-both-character-matrix-and-numeric-Matrix/m-p/535834#M4567</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/194934"&gt;@thepushkarsingh&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I have a data with Char ID and I am separating that ID from other vars(numerical) in a matrix. After all calculations I just want to merge them back(horizontal concatenation) for the output:&lt;/P&gt;
&lt;P&gt;(UID is CHAR, EMI is NUM)&lt;/P&gt;
&lt;P&gt;INFO=UID||EMI;&lt;/P&gt;
&lt;P&gt;But IML is not allowing me:&lt;/P&gt;
&lt;P&gt;ERROR: All specified variables must be the same type.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any idea if and how it can be done?&lt;/P&gt;
&lt;P&gt;Thanks a lot in advance.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Afaik this can't be done while in proc iml.&lt;/P&gt;</description>
    <pubDate>Fri, 15 Feb 2019 12:33:29 GMT</pubDate>
    <dc:creator>andreas_lds</dc:creator>
    <dc:date>2019-02-15T12:33:29Z</dc:date>
    <item>
      <title>Merge both character matrix and numeric Matrix</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Merge-both-character-matrix-and-numeric-Matrix/m-p/535830#M4566</link>
      <description>&lt;P&gt;I have a data with Char ID and I am separating that ID from other vars(numerical) in a matrix. After all calculations I just want to merge them back(horizontal concatenation) for the output:&lt;/P&gt;&lt;P&gt;(UID is CHAR, EMI is NUM)&lt;/P&gt;&lt;P&gt;INFO=UID||EMI;&lt;/P&gt;&lt;P&gt;But IML is not allowing me:&lt;/P&gt;&lt;P&gt;ERROR: All specified variables must be the same type.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea if and how it can be done?&lt;/P&gt;&lt;P&gt;Thanks a lot in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Feb 2019 11:50:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Merge-both-character-matrix-and-numeric-Matrix/m-p/535830#M4566</guid>
      <dc:creator>thepushkarsingh</dc:creator>
      <dc:date>2019-02-15T11:50:18Z</dc:date>
    </item>
    <item>
      <title>Re: Merge both character matrix and numeric Matrix</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Merge-both-character-matrix-and-numeric-Matrix/m-p/535834#M4567</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/194934"&gt;@thepushkarsingh&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I have a data with Char ID and I am separating that ID from other vars(numerical) in a matrix. After all calculations I just want to merge them back(horizontal concatenation) for the output:&lt;/P&gt;
&lt;P&gt;(UID is CHAR, EMI is NUM)&lt;/P&gt;
&lt;P&gt;INFO=UID||EMI;&lt;/P&gt;
&lt;P&gt;But IML is not allowing me:&lt;/P&gt;
&lt;P&gt;ERROR: All specified variables must be the same type.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any idea if and how it can be done?&lt;/P&gt;
&lt;P&gt;Thanks a lot in advance.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Afaik this can't be done while in proc iml.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Feb 2019 12:33:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Merge-both-character-matrix-and-numeric-Matrix/m-p/535834#M4567</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2019-02-15T12:33:29Z</dc:date>
    </item>
    <item>
      <title>Re: Merge both character matrix and numeric Matrix</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Merge-both-character-matrix-and-numeric-Matrix/m-p/535835#M4568</link>
      <description>Thanks. I'll use a data merge then.</description>
      <pubDate>Fri, 15 Feb 2019 12:44:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Merge-both-character-matrix-and-numeric-Matrix/m-p/535835#M4568</guid>
      <dc:creator>thepushkarsingh</dc:creator>
      <dc:date>2019-02-15T12:44:20Z</dc:date>
    </item>
    <item>
      <title>Re: Merge both character matrix and numeric Matrix</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Merge-both-character-matrix-and-numeric-Matrix/m-p/536075#M4569</link>
      <description>&lt;P&gt;Yes, you can do it. Use the ROWNAME= option when you write the numerical matrix:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc iml;
EMI = {1 2 3,
       4 5 6,
       7 8 9};
UID = {"A", "B", "C"};

create Want from EMI[rowname=UID];
append from EMI[rowname=UID];
close;
quit;

proc print data=Want;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 15 Feb 2019 22:03:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Merge-both-character-matrix-and-numeric-Matrix/m-p/536075#M4569</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2019-02-15T22:03:14Z</dc:date>
    </item>
    <item>
      <title>Re: Merge both character matrix and numeric Matrix</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Merge-both-character-matrix-and-numeric-Matrix/m-p/536154#M4570</link>
      <description>&lt;P&gt;You can do it if you only want get a table .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc iml;
use sashelp.class;
read all var {name age};
close;
age=age#100;

create want var {name age};
append;
close;
quit;

proc print;run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 16 Feb 2019 13:19:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Merge-both-character-matrix-and-numeric-Matrix/m-p/536154#M4570</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2019-02-16T13:19:43Z</dc:date>
    </item>
  </channel>
</rss>

