[R] write.table() error

From: Megh Dal <megh700004_at_yahoo.com>
Date: Thu, 05 Jun 2008 20:57:57 -0700 (PDT)


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. Received on Fri 06 Jun 2008 - 06:01:44 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 - 06:30:39 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