Re: [R] write.table() error

From: Daniel Folkinshteyn <dfolkins_at_gmail.com>
Date: Fri, 06 Jun 2008 00:11:45 -0400

looks like you don't have permission to write a file to C:\ try writing to some other directory where you have write access (e.g., your user's home dir, or your "my documents", or something like that).

on 06/05/2008 11:57 PM Megh Dal said the following:
> Hi,
>
> I got following error in write.table() :
>

>> write.table(dataa, file="c:/data1.csv", row.names=F, col.names=T, sep=",")

> Error in file(file, ifelse(append, "a", "w")) :
> cannot open the connection
> In addition: Warning message:
> In file(file, ifelse(append, "a", "w")) :
> cannot open file 'c:/data1.csv': Permission denied
>
>
> where dataa is a zoo object
>> head(dataa)

> data11 data22
> Nov 1980 988.25 194841
> Dec 1980 942.38 205732
> Jan 1981 935.90 226501
> Feb 1981 968.79 227402
> Mar 1981 932.77 233490
> Apr 1981 906.18 233447
>
>
> Can please tell me why this error is coming? I am using Windows vista
>
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help_at_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-contained, reproducible code.
>

R-help_at_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-contained, reproducible code. Received on Fri 06 Jun 2008 - 04:27:24 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 06 Jun 2008 - 05:30:38 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive