Part II Re: [R] read.ssd {foreign} (Reading a permanent SAS d ataset into an R data frame)

Thomas Lumley tlumley at u.washington.edu
Fri Dec 20 20:22:20 CET 2002


On Fri, 20 Dec 2002, Stephen Arthur wrote:

> Thomas,
>
> Your point is well taken.  I spoke with the people at
> SAS again, and they said that a reason why I was
> having a problem with the SAS xpt file, is that my
> variable names are sometimes longer than 8 characters
> long.
>
> PROC COPY puts a limit of 8 characters length to
> variable names.  Does R have a limit to the length of
> variable names?

No. (well, it probably does but it's so long I don't know what it is)

> Instead, I used PROC CPORT, which can handle variable
> names longer than 8 characters long, successfully.
>
> proc cport library=src2rd file=tranfile;
>  select use;
> run;
>
> But now, when I try to use the R function
> 'read.xport', I get the following error message:
>
> read.xport("J:\\QM\\Reports\\Sarthur\\SAS_Application\\SAS_Data_Sets\\use")
>
> Error in lookup.xport(file) : unable to open file
>

That means R can't find the file.  Are you sure it's there?

	-thomas




More information about the R-help mailing list