<?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 Advantage of calling R into SAS in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Advantage-of-calling-R-into-SAS/m-p/511631#M2212</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using both SAS and R for my tasks. For a particular task, I use SAS for data manipulation, export, then import into R, and then use R to fit a Bayesian model with package rstan. For another task, I use R for data manipulation, export, then import into SAS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have known that we can call R into SAS by using proc iml. However, I think Rstudio is also strong as we can check values quickly so for me working with R in SAS is not&amp;nbsp;much advantageous as working with R in Rstudio.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From your experience, could you suggest in which situations should we call R into SAS with proc iml rather than working independently as I mention above?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for reading!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Trung Dung.&lt;/P&gt;</description>
    <pubDate>Fri, 09 Nov 2018 11:13:55 GMT</pubDate>
    <dc:creator>trungdungtran</dc:creator>
    <dc:date>2018-11-09T11:13:55Z</dc:date>
    <item>
      <title>Advantage of calling R into SAS</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Advantage-of-calling-R-into-SAS/m-p/511631#M2212</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using both SAS and R for my tasks. For a particular task, I use SAS for data manipulation, export, then import into R, and then use R to fit a Bayesian model with package rstan. For another task, I use R for data manipulation, export, then import into SAS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have known that we can call R into SAS by using proc iml. However, I think Rstudio is also strong as we can check values quickly so for me working with R in SAS is not&amp;nbsp;much advantageous as working with R in Rstudio.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From your experience, could you suggest in which situations should we call R into SAS with proc iml rather than working independently as I mention above?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for reading!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Trung Dung.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Nov 2018 11:13:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Advantage-of-calling-R-into-SAS/m-p/511631#M2212</guid>
      <dc:creator>trungdungtran</dc:creator>
      <dc:date>2018-11-09T11:13:55Z</dc:date>
    </item>
    <item>
      <title>Re: Advantage of calling R into SAS</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Advantage-of-calling-R-into-SAS/m-p/511633#M2213</link>
      <description>&lt;P&gt;If you want to make full use of the SAS environment (metadata, batch processing, ...), calling R from within SAS is mandated.&lt;/P&gt;
&lt;P&gt;Data engineering (or what's called ETL) is a pure SAS domain. R is lacking considerably with respect to that, at least it was when I last looked into it.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Nov 2018 11:19:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Advantage-of-calling-R-into-SAS/m-p/511633#M2213</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-11-09T11:19:40Z</dc:date>
    </item>
    <item>
      <title>Re: Advantage of calling R into SAS</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Advantage-of-calling-R-into-SAS/m-p/511634#M2214</link>
      <description>&lt;P&gt;I have hardly any experience in R and i really don't mean to be rude, but i can't think of a polite way to say: any process that requires switching tools is crap and needs redesign, if the process could be implemented by using just one tool.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Nov 2018 11:21:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Advantage-of-calling-R-into-SAS/m-p/511634#M2214</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2018-11-09T11:21:48Z</dc:date>
    </item>
    <item>
      <title>Re: Advantage of calling R into SAS</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Advantage-of-calling-R-into-SAS/m-p/511635#M2215</link>
      <description>I think that both tools are developed to work independently. However, my knowledge is limited so I just use both to make my tasks easier.</description>
      <pubDate>Fri, 09 Nov 2018 11:31:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Advantage-of-calling-R-into-SAS/m-p/511635#M2215</guid>
      <dc:creator>trungdungtran</dc:creator>
      <dc:date>2018-11-09T11:31:11Z</dc:date>
    </item>
    <item>
      <title>Re: Advantage of calling R into SAS</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Advantage-of-calling-R-into-SAS/m-p/511637#M2216</link>
      <description>Thank you for your suggestion!</description>
      <pubDate>Fri, 09 Nov 2018 11:33:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Advantage-of-calling-R-into-SAS/m-p/511637#M2216</guid>
      <dc:creator>trungdungtran</dc:creator>
      <dc:date>2018-11-09T11:33:35Z</dc:date>
    </item>
    <item>
      <title>Re: Advantage of calling R into SAS</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Advantage-of-calling-R-into-SAS/m-p/511663#M2223</link>
      <description>&lt;P&gt;While I agree with my friend&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/15475"&gt;@andreas_lds&lt;/a&gt;&amp;nbsp;that there is a cost to switch contexts (more moving parts, more apps to maintain, harder to automate), I know many SAS customers that use SAS alongside other tools like Python and R -- often across different teams -- so a smooth integration process is required.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This video featuring&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS&lt;/a&gt;&amp;nbsp;explains one big advantage: Reuse.&amp;nbsp; That is, sometimes we have colleagues that build good work in R -- and we don't want to have to re-implement in SAS to take advantage of it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;div class="video-embed-center video-embed"&gt;&lt;iframe class="embedly-embed" src="https://cdn.embedly.com/widgets/media.html?url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DnmRQ3MtkG6A&amp;amp;type=text%2Fhtml&amp;amp;schema=google&amp;amp;display_name=YouTube&amp;amp;src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FnmRQ3MtkG6A%3Fstart%3D182" width="400" height="225" scrolling="no" title="YouTube embed" frameborder="0" allow="autoplay; fullscreen; encrypted-media; picture-in-picture;" allowfullscreen="true"&gt;&lt;/iframe&gt;&lt;/div&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SAS Viya supports access from R into SAS.&amp;nbsp;&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/214450"&gt;@joeFurbee&lt;/a&gt;&amp;nbsp;shares &lt;A href="https://blogs.sas.com/content/sgf/2018/07/25/using-rstudio-with-sas-viya/" target="_self"&gt;an example using RStudio in this blog&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Nov 2018 13:19:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Advantage-of-calling-R-into-SAS/m-p/511663#M2223</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2018-11-09T13:19:54Z</dc:date>
    </item>
    <item>
      <title>Re: Advantage of calling R into SAS</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Advantage-of-calling-R-into-SAS/m-p/511667#M2224</link>
      <description>&lt;P&gt;As others have mentioned, the workflow is important. I have written about &lt;A href="https://blogs.sas.com/content/iml/2013/11/25/twelve-advantages-to-calling-r-from-the-sasiml-language.html" target="_self"&gt;12 advantages&amp;nbsp;of&amp;nbsp;using the SAS/IML interface to call R&lt;/A&gt;, and most involve the convenience&amp;nbsp;of integrating the two programs.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My suggestion: First use RStudio or whatever R tools you want to develop the R portion of your analysis, using simulated data if necessary&amp;nbsp;while you write the program. (Do the same for the SAS portion of your program,&amp;nbsp;using your favorite SAS development tools.) After the R program is debugged and stable, integrate it into your SAS workflow. Many people try to develop the SAS and R portions of the code simultaneously, and that usually leads to problems. If you adopt a&amp;nbsp;modular approach to development and debugging, the process will go smoother.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Nov 2018 13:29:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Advantage-of-calling-R-into-SAS/m-p/511667#M2224</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2018-11-09T13:29:26Z</dc:date>
    </item>
    <item>
      <title>Re: Advantage of calling R into SAS</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Advantage-of-calling-R-into-SAS/m-p/515922#M3041</link>
      <description>Thank you so much! I have implemented for a task as you have said. I did SAS and R portion independently until everything is fine then I integrate them and then I can only type in SAS and run R behind the scene.</description>
      <pubDate>Mon, 26 Nov 2018 08:56:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Advantage-of-calling-R-into-SAS/m-p/515922#M3041</guid>
      <dc:creator>trungdungtran</dc:creator>
      <dc:date>2018-11-26T08:56:07Z</dc:date>
    </item>
  </channel>
</rss>

