[R] Write to dynamic file name
gil.razial
gil.razial at gmail.com
Wed May 30 17:55:23 CEST 2012
hi,
i am trying to use the write.csv function but to give a dynamic file name
each time a different one
but i am getting an error that he cannot open the file :
TodayDate<-UniqDate[1] ## this gives "04/02/2012"
FileLocation<-"C:\\Trade Doc\\trade log\\Real account\\sys file\\Test
Data\\Data breaked to months\\Days Data\\DayData"
FileEnd<-".csv"
FileName<- paste(FileLocation,TodayDate,FileEnd,sep = "")
## then i try this
write.csv(UniqDate,FileName,row.names = FALSE ) ## where UniqDate is the
data i am interested in
but i get the flowing error
it is in spanish but it means he can not open the file
Error en file(file, ifelse(append, "a", "w")) :
no se puede abrir la conexión
Además: Mensajes de aviso perdidos
In file(file, ifelse(append, "a", "w")) :
no fue posible abrir el archivo 'C:\Users\Eldad Nahmany\Documents\Trade
Doc\trade log\Real account\sys file\Test Data\Data breaked to months\Days
Data\DayData04/02/2012.csv': No such file or directory
thanks for any help
Gil
--
View this message in context: http://r.789695.n4.nabble.com/Write-to-dynamic-file-name-tp4631841.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list