Statistical programming, matrix languages, and more

passing SAS to R

Reply
Occasional Learner apk
Occasional Learner
Posts: 1

passing SAS to R

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.

SAS Super FREQ
Posts: 3,630

Re: passing SAS to R

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.

Super User
Super User
Posts: 6,845

Re: passing SAS to R

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.

Ask a Question
Discussion stats
  • 2 replies
  • 294 views
  • 0 likes
  • 3 in conversation