[R-SIG-Finance] Problems with xts and plotting charts in quantmod

Liu carloslewlew at gmail.com
Thu Feb 5 02:07:42 CET 2015


Hi all,
I'm trying to plot candle charts from OHLC data frame like this:
 V1V2V3V4V5
120150101 1801001184.131184.441184.041184.13
220150101 1802001184.121184.411184.121184.41
320150101 1803001184.531184.541184.321184.54
420150101 1804001184.601184.601184.431184.51
Tried to cast it to xts by using:

data<-read.csv(file path)
chartSeries(as.xts(data),type="candlesticks")

Then I have the error "

Error in as.POSIXlt.character(x, tz, ...) :
  character string is not in a standard unambiguous format

"
I am not sure what that means. Maybe it's saying that my date and time is
non standard string? What should I do?
Please help.

Thanks
Carlos

	[[alternative HTML version deleted]]



More information about the R-SIG-Finance mailing list