Convert tab delimited to XTS within R?
问题 I have tab delimited file in format of: Date Time Last LastSize TotVol Bid Ask TickID BidSize AskSize 8/23/2012 0:00:00 0.95711 1 20670 0.95711 0.95742 0 0 0 8/23/2012 0:00:04 0.9571 1 20671 0.9571 0.9574 0 0 0 I am using the function to create an XTS within R. > EURUSD <- as.xts(read.zoo("C:\\Users\\caustic\\Documents\\DTN\\IQFeed\\EURUSD.FXCM_1.txt", + sep='\t', + tz='', + header=T, + format='%d/%m/%Y %H:%M:%S')) I get an error of: Error in as.POSIXlt.character(x, tz, ...) : character