Re: [R] read SAS file

2008-11-13 Thread Robert W. Baer, Ph.D.
You need to load the foreign package first. library(foreign) - Original Message - From: "b g" <[EMAIL PROTECTED]> To: Sent: Monday, November 10, 2008 12:28 PM Subject: [R] read SAS file Looked at a lot of documentation and listserv postings and still can't so

Re: [R] read SAS file

2008-11-12 Thread Gabor Grothendieck
osts Nothing > But Rewards Everything > > Happiness is not perfected until it is shared > -Jane Porter > > > --- On Wed, 11/12/08, b g <[EMAIL PROTECTED]> wrote: > From: b g <[EMAIL PROTECTED]> > Subject: Re: [R] read SAS file >

Re: [R] read SAS file

2008-11-12 Thread Philip Twumasi-Ankrah
g <[EMAIL PROTECTED]> wrote: From: b g <[EMAIL PROTECTED]> Subject: Re: [R] read SAS file To: [EMAIL PROTECTED] Cc: r-help@r-project.org, [EMAIL PROTECTED] Date: Wednesday, November 12, 2008, 7:51 AM Another question. I want to install some of the user packages but it's not clear fr

Re: [R] read SAS file

2008-11-12 Thread b g
gt; To: [EMAIL PROTECTED] > CC: [EMAIL PROTECTED]; r-help@r-project.org > Subject: Re: [R] read SAS file > > b g wrote: >> Figured out the problem reading the file. Csv files must be ftp'd as ascii >> and xpt files as binary. However, both strategies result in the fi

Re: [R] read SAS file

2008-11-11 Thread b g
] > CC: [EMAIL PROTECTED]; r-help@r-project.org > Subject: Re: [R] read SAS file > > b g wrote: >> Figured out the problem reading the file. Csv files must be ftp'd as ascii >> and xpt files as binary. However, both strategies result in the first few >> columns bei

Re: [R] read SAS file

2008-11-11 Thread Peter Dalgaard
SAS, but I can't find the command to do this in > the documentation. How is this done?> Date: Tue, 11 Nov 2008 10:35:28 +0100> > From: [EMAIL PROTECTED]> To: [EMAIL PROTECTED]> CC: [EMAIL PROTECTED]; > r-help@r-project.org> Subject: Re: [R] read SAS file> > b g

Re: [R] read SAS file

2008-11-11 Thread b g
e command to do this in the documentation. How is this done?> Date: Tue, 11 Nov 2008 10:35:28 +0100> From: [EMAIL PROTECTED]> To: [EMAIL PROTECTED]> CC: [EMAIL PROTECTED]; r-help@r-project.org> Subject: Re: [R] read SAS file> > b g wrote:> > I must have this file in

Re: [R] read SAS file

2008-11-11 Thread Peter Dalgaard
b g wrote: > I must have this file in the wrong directory. I can see it and it's spelled correctly in my command (including case) but I get: > >> library(foreign)> read.xport("cft2008R") Error in lookup.xport(file) >> : unable to open file: 'No such file or directory'> There are several subdirect

Re: [R] read SAS file

2008-11-10 Thread Philipp Pagel
> I must have this file in the wrong directory. I can see it and > it's spelled correctly in my command (including case) but I > get: > > > library(foreign) > > read.xport("cft2008R") > Error in lookup.xport(file) : unable to open file: 'No such file or > > directory' R is looking in the curr

Re: [R] read SAS file

2008-11-10 Thread Erik Iverson
PROTECTED]> To: [EMAIL PROTECTED]; r-help@r-project.org> Date: Mon, 10 Nov 2008 13:41:37 -0500> Subject: RE: [R] read SAS file> > Did you load the "foreign" library first?> > Try:> > library(foreign)> read.xport("cft2008R")> > HTH,> > Patri

Re: [R] read SAS file

2008-11-10 Thread b g
; There are several > subdirectories under C:\Program Files\R\R-2.8.0\ . Should it be in one of > those? > From: [EMAIL PROTECTED]> To: [EMAIL PROTECTED]; r-help@r-project.org> Date: > Mon, 10 Nov 2008 13:41:37 -0500> Subject: RE: [R] read SAS file> > Did you

Re: [R] read SAS file

2008-11-10 Thread David Huffer
Do you have the foreign package loaded? -- David __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contai

Re: [R] read SAS file

2008-11-10 Thread Richardson, Patrick
Did you load the "foreign" library first? Try: library(foreign) read.xport("cft2008R") HTH, Patrick -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of b g Sent: Monday, November 10, 2008 1:29 PM To: r-help@r-project.org Subjec

[R] read SAS file

2008-11-10 Thread b g
Looked at a lot of documentation and listserv postings and still can’t solve this problem. I need to get a SAS dataset into R. I’ve converted it to an .xpt file and when I try to read it I get: > read.xport("cft2008R") Error: could not find function "read.xport" > Not sure what I’m doing