[R] Export R outputs to SAS dataset
Rasmus Liland
jr@| @end|ng |rom po@teo@no
Sat Aug 22 18:05:08 CEST 2020
On 2020-08-22 08:17 +0530, Jomy Jose wrote:
| Hi
| I was able to run R code via PROC IML
| in SAS,so is there any way to export
| the generated outputs to SAS datasets
| since the R outputs don't follow data
| frame structure.
Dear Jomy,
But perhaps you can take the outputs in
SAS and work on them inside from there?
To export a data frame from R to SAS via
a file[1], you can use
foreign::write.foreign(..., package="SAS")
But I have not tried it.
I have used foreign::read.spss before,
hehe :-)
I know R is also possible to call from
Julia, and the df appearing in Julia,
this sounds like it should be possible
SAS too[2], yes?
Best,
Rasmus
[1] https://www.statmethods.net/input/exportingdata.html
[2] https://documentation.sas.com/?docsetId=imlug&docsetTarget=imlug_r_sect012.htm&docsetVersion=15.1&locale=en
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20200822/746d64d2/attachment.sig>
More information about the R-help
mailing list