Re: [R] stata ==> R - error messages

2009-04-24 Thread Duncan Murdoch
On 4/24/2009 10:18 AM, Hans Ekbrand wrote: On Fri, Apr 24, 2009 at 01:50:04PM +0200, Rob Bakker wrote: Dear Peter, Also thank you for your quick reply. I did the following with no positive result: library(foreign) read.dta(choose.file(C:\Rklein)) a) quote the filename b) include the suffix

Re: [R] stata ==> R - error messages

2009-04-24 Thread Hans Ekbrand
On Fri, Apr 24, 2009 at 01:50:04PM +0200, Rob Bakker wrote: > Dear Peter, > Also thank you for your quick reply. I did the following with no positive > result: > > library(foreign) > > read.dta(choose.file(C:\Rklein)) a) quote the filename b) include the suffix rklein <- read.dta("C:\Rklein.dta

Re: [R] stata ==> R - error messages

2009-04-24 Thread Rob Bakker
Dear Peter, Also thank you for your quick reply. I did the following with no positive result: library(foreign) read.dta(choose.file(C:\Rklein)) Error: unexpected input in "read.dta(choose.file(C:\" > read.dta(choose.file("C:\Rklein")) Error in grep("^(http|ftp|https)://", file) : could not find

Re: [R] stata ==> R - error messages

2009-04-24 Thread Rob Bakker
Dear Duncan, Peter and Jim, Thank you very much!! It worked! Best regards, Rob Bakker 2009/4/24 Duncan Murdoch > On 24/04/2009 7:42 AM, Peter Dalgaard wrote: > >> Jim Lemon wrote: >> >>> Rob Bakker wrote: >>> Dear Sirs, I am just starting with R and I think it is a great system. Now,

Re: [R] stata ==> R - error messages

2009-04-24 Thread Peter Dalgaard
Rob Bakker wrote: > Dear Peter, > > Also thank you for your quick reply. I did the following with no > positive result: > > library(foreign) > > read.dta(choose.file(C:\Rklein)) > Error: unexpected input in "read.dta(choose.file(C:\" >> read.dta(choose.file("C:\Rklein")) > Error in grep("^(http

Re: [R] stata ==> R - error messages

2009-04-24 Thread Duncan Murdoch
On 24/04/2009 7:42 AM, Peter Dalgaard wrote: Jim Lemon wrote: Rob Bakker wrote: Dear Sirs, I am just starting with R and I think it is a great system. Now, I want to import Stata datasets (.dta) with read.dta, but receive errormessages like: Error in grep("^(http|ftp|https)://", file) : object

Re: [R] stata ==> R - error messages

2009-04-24 Thread Peter Dalgaard
Jim Lemon wrote: > Rob Bakker wrote: >> Dear Sirs, >> I am just starting with R and I think it is a great system. Now, I >> want to >> import Stata datasets (.dta) with read.dta, but receive errormessages >> like: >> >> Error in grep("^(http|ftp|https)://", file) : object "Rklein" not found >> >> E

Re: [R] stata ==> R - error messages

2009-04-24 Thread Jim Lemon
Rob Bakker wrote: Dear Sirs, I am just starting with R and I think it is a great system. Now, I want to import Stata datasets (.dta) with read.dta, but receive errormessages like: Error in grep("^(http|ftp|https)://", file) : object "Rklein" not found Error in read.dta("Rklein") : unable to o

[R] stata ==> R - error messages

2009-04-24 Thread Rob Bakker
Dear Sirs, I am just starting with R and I think it is a great system. Now, I want to import Stata datasets (.dta) with read.dta, but receive errormessages like: Error in grep("^(http|ftp|https)://", file) : object "Rklein" not found Error in read.dta("Rklein") : unable to open file: 'No such f