library(foreign)
Rdata=read.ssd("Z:/MyFolder","data1",sascmd = "C:/Program Files/SAS/SAS
9.1/sas.exe")
Rdata
Y D1 D2 D3
1 100 1 0 0
2 101 1 0 0
3 105 1 0 0
4 200 0 1 0
5 201 0 1 0
6 205 0 1 0
7 300 0 0 1
8 301 0 0 1
9 305 0 0 1
where 'data1' is the SAS datafile to
Stefo Ratino wrote:
> Hello everybody,
>
> I would like to read a SAS Data data1.sas7bdat in R! Is this possible?
>
Only if you have access to SAS. The file format is proprietary and noone
has bothered to decipher it.
> Thank you a lot in advance ;),
> Stefo
>
>
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
> Of Samuel Okoye
> Sent: Friday, March 14, 2008 8:21 AM
> To: [EMAIL PROTECTED]
> Subject: [R] SAS data
>
> Hello,
>
> I am trying to read the SAS file MyData.sa7bdat in R! This file is saved
> under
>
Looks to me like you are trying to read sas.exe as your data rather
than MyData.sa7bdat
Larry
On Fri, Mar 14, 2008 at 8:21 AM, Samuel Okoye <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I am trying to read the SAS file MyData.sa7bdat in R! This file is saved
> under D:\data! I therefore wrote
>
4 matches
Mail list logo