Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to load rda/RData data from R into SAS?

Tags:

r

sas

I have plenty of .rda and .RData files from R statistical packageand would like to read them into SAS. Is there an (easy) way to do this?

like image 769
Marcin Kosiński Avatar asked Nov 09 '22 16:11

Marcin Kosiński


1 Answers

If you can get R installed, then you could execute R code within PROC IML (assuming your SAS installation is configured properly, which can be a problem), read the results into e.g. a R data.frame and get the results back as described in the SAS documentation examples. If you do not have the SAS/IML license but have R, write the output out from R into some format SAS reads easily (e.g. csv). If you cannot get R installed on your system, can someone else with R installed do that for you?

Otherwise, you may have to write a SAS program that can parse the RData format. However, that would be a measure of desperation. I believe you would find the documentation of the format here and some discussion of the not so clear documentation here (see also)

like image 86
Björn Avatar answered Nov 15 '22 07:11

Björn