Hey people..
I have been trying this code

write.table(data.frame(date,name,amount,details),file="C:/Documents and
Settings/Administrator/My Documents/Account/Account
Info.txt",quote=FALSE,append=TRUE,col.names=FALSE,row.names=FALSE,sep="\t")

check<-read.table("C:/Documents and Settings/Administrator/My
Documents/Account/Account
Info.txt",col.names=c("Date","Name","Amount","Details"),header=FALSE,sep="\t",
na.strings="NA")

#My na.strings="NA" is not showing NA's in blank entries

# check$Date is of the format("%Y-%m-%d")
# I want to change it to

check$Date<-format(check$Date,"%d-%m-%Y")

#  I get this error

Error in switch(mode(x), "NULL" = "NULL", character = .Internal(format(x,  :

invalid 'trim' argument


HELP

Sayeed

        [[alternative HTML version deleted]]

______________________________________________
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel

Reply via email to