BookmarkSubscribeRSS Feed
apk
Calcite | Level 5 apk
Calcite | Level 5

How does Proc IML pass data to R? My general question is whether it'd be as fast as "embedded R" in the context of monetDB, TeraData, SQL Server, Oracle, IBM, etc. basically 

 

Does... SAS trick R into thinking its data is an R vector, or does it force R to read a csv? Basically this would affect my workflow - do I keep the data in SAS or do I export an in-database R solution.

2 REPLIES 2
Rick_SAS
SAS Super FREQ

SAS does not "force R to read a csv."  The data is transferred in binary form.  I don't know the details or how it compares in speed with the databases you mention, but I know that the developers paid attention to performance.

 

As you are making your decisions, be sure to read about all the data types that SAS automatically converts between SAS and R.. Also read about the 12 advantages to calling R in the SAS/IML language.

Tom
Super User Tom
Super User

The tools in the IML that support R will allow you move data between SAS datasets and R data frames.  

That makes me believe they are limited in size to the amount of memory that the R process can use.

There are tools from Teradata  that allow you to create data frames that keep the data in the database.  I am not sure if the SAS interface to R would work with that implementation of R, but I don't see why it wouldn't.

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

Multiple Linear Regression in SAS

Learn how to run multiple linear regression models with and without interactions, presented by SAS user Alex Chaplin.

Find more tutorials on the SAS Users YouTube channel.

From The DO Loop
Want more? Visit our blog for more articles like these.
Discussion stats
  • 2 replies
  • 1091 views
  • 0 likes
  • 3 in conversation