[R] write.table() error
Daniel Folkinshteyn
dfolkins at gmail.com
Fri Jun 6 06:11:45 CEST 2008
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.
>
More information about the R-help
mailing list