<?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: PROC IML - importing data from R in SAS/IML Software and Matrix Computations</title>
    <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/PROC-IML-importing-data-from-R/m-p/490025#M4341</link>
    <description>&lt;P&gt;The best thing is for you to get the database&amp;nbsp;to use numbers instead of character values. If you can't do that, then use the NUM function to convert the character&amp;nbsp;values to numeric:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;x= J(r, 1, 1) || num(xi);&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 27 Aug 2018 10:52:31 GMT</pubDate>
    <dc:creator>Rick_SAS</dc:creator>
    <dc:date>2018-08-27T10:52:31Z</dc:date>
    <item>
      <title>PROC IML - importing data from R</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/PROC-IML-importing-data-from-R/m-p/489954#M4338</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I want to obtain x as a two column array, the first column must be a vector of values one and the other xi is a variable of decimal values that comes from the database imported from R, au_obsbipoiss. I am doing it in the following way&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc iml;&lt;BR /&gt;reset noname;&lt;BR /&gt;use distrib.au_obsbipoiss;&lt;BR /&gt;read all var{y_1} into y1;&lt;BR /&gt;read all var{y_2} into y2;&lt;BR /&gt;read all var{xmat} into xi;&lt;BR /&gt;r = nrow(y1);&lt;BR /&gt;x= J(r, 1, 1)||xi;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, SAS takes xi as a character variable so I can not get x.&lt;BR /&gt;What I can do? please help me.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Aug 2018 02:03:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/PROC-IML-importing-data-from-R/m-p/489954#M4338</guid>
      <dc:creator>alix1</dc:creator>
      <dc:date>2018-08-27T02:03:46Z</dc:date>
    </item>
    <item>
      <title>Re: PROC IML - importing data from R</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/PROC-IML-importing-data-from-R/m-p/490025#M4341</link>
      <description>&lt;P&gt;The best thing is for you to get the database&amp;nbsp;to use numbers instead of character values. If you can't do that, then use the NUM function to convert the character&amp;nbsp;values to numeric:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;x= J(r, 1, 1) || num(xi);&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Aug 2018 10:52:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/PROC-IML-importing-data-from-R/m-p/490025#M4341</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2018-08-27T10:52:31Z</dc:date>
    </item>
    <item>
      <title>Re: PROC IML - importing data from R</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/PROC-IML-importing-data-from-R/m-p/490255#M4344</link>
      <description>thanks, but it did not work&lt;BR /&gt;</description>
      <pubDate>Mon, 27 Aug 2018 20:53:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/PROC-IML-importing-data-from-R/m-p/490255#M4344</guid>
      <dc:creator>alix1</dc:creator>
      <dc:date>2018-08-27T20:53:22Z</dc:date>
    </item>
    <item>
      <title>Re: PROC IML - importing data from R</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/PROC-IML-importing-data-from-R/m-p/491618#M4350</link>
      <description>&lt;P&gt;If you expect help, you need to provide more information. What didn't work? What does the log say? Can you provide sample data?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is an example that demonstrates the technique that I suggested:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc iml;
xi = {'1', '2', '3.14159', '-2.7'};
r = nrow(xi);
x= J(r, 1, 1) || num(xi);
print x;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 31 Aug 2018 12:51:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/PROC-IML-importing-data-from-R/m-p/491618#M4350</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2018-08-31T12:51:03Z</dc:date>
    </item>
  </channel>
</rss>

