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-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

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
  • 867 views
  • 0 likes
  • 3 in conversation