[R] Fwd: RE: importing sas datasets

a.martino at crismaitalia.it a.martino at crismaitalia.it
Fri Apr 27 10:02:32 CEST 2007


Hi Dan,

sorry for the precedent email, I created a csv file of only
1000 records by mistake, that's why R has only read 1000
records.

regards

Anna

----- Messaggio Inoltrato  -----
Da : "a.martino at crismaitalia.it" <a.martino at crismaitalia.it>
A : "Daniel Nordlund"
<res90sx5 at verizon.net>,<r-help at stat.math.ethz.ch>
Oggetto : RE: [R] importing sas datasets
Data : Fri, 27 Apr 2007 08:34:09 +0100

Hi Dan,

thanks for the help, I'll try to resolve the sas.get problem
in a second moment , actually I bypassed the problem
creating a .csv file from my dataset and then using the
read.csv function to import it into R. The only problem is
that R imports only a 1000 observations, is that normal? Or
did I have to specify an option?

thanks and have a nice day

Anna

----- Original Message -----
Da : "Daniel Nordlund" <res90sx5 at verizon.net>
A : <a.martino at crismaitalia.it>, <r-help at stat.math.ethz.ch>
Oggetto : RE: [R] importing sas datasets
Data : Mon, 23 Apr 2007 13:09:47 -0700

> Anna,
> 
> My comment about var=("  ")  being the problem is probably
> wrong.  Apparently R and the sas.get function can handle
> that specification just fine (I have some learning to do
> myself).  I have a question about the error message below.
> 
> > -----Original Message-----
> > From: a.martino at crismaitalia.it
> > [mailto:a.martino at crismaitalia.it] Sent: Monday, April
> > 23, 2007 8:45 AM To: John Kane; Daniel Nordlund;
> > r-help at stat.math.ethz.ch Subject: Re: [R] importing sas
> > datasets 
> > Hi John and Daniel,
> > 
> > Thanks for your suggestions, I updated line 127 of the
> > sas.get function  but after submitting the following
> > command:
> > 
> > c<- sas.get(lib="c:\\ghan", mem="mkds0001", var=("   "),
> > format.library="d:\\R\\R-2.4.1",
> > sasprog='"C:\\Programmi\\SAS\\SAS 9.1\\sas.exe"') (also
> > trying with sasprog="C:\\Programmi\\SAS\\SAS
> > 9.1\\sas.exe") 
> > the log signaled the following error:
> > 
> > Errore in system(paste(shQuote(sasprog), shQuote(sasin),
> > "-log", shQuote(log.file)),  :
> >         unused argument(s) (output = FALSE)
> 
> The error says there are unused arguments in the system
> function call.  So that's where I would focus to try to
> solve this problem.  However, I can't replicate the
> problem on my Windows XP Pro system.  So at this point I
> can't be of much help.  
> 
> Sorry I can't be more helpful at this time,
> 
> Dan 
> 
> Daniel Nordlund
> Bothell, WA USA
>



More information about the R-help mailing list