Hi, I am new to R and have been trying out how to integrate R codes in SAS. In a single SAS program, I have some SAS codes followed by R codes. Can I call on the SAS datasets (mydataset1 mydataset2) without doing the ExportDataSetToR step? The reason why I'm asking is there seemed to be some limit on the length of the variables in the dataset when doing the ExportDataSetToR step. data mydataset1;
set mylibrary.mydataset1;
run;
data mydataset2; set mylibrary.mydataset2; run;
proc iml;
run ExportDataSetToR("mydataset1", "rdataset1"); run ExportDataSetToR("mydataset2", "rdataset2");
submit / R;
#_______Begin of R code_________________
total <- merge(data mydataset1, data mydataset2, by="ID")
#_______End of R code_________________
endsubmit;
... View more