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
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
>
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
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
]
> 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
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
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
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
> 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
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
; 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
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
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
Looked at a lot of documentation and listserv postings and still cant solve
this problem. I need to get a SAS dataset into R. Ive 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 Im doing
14 matches
Mail list logo