[R] quantmod: Error in charToDate(x)

Swen Strek sven.strek at gmail.com
Thu Apr 28 07:32:08 CEST 2011

I have following problem when trying to feed an CSV file to quantmod
using following command:

> require (quantmod)
> getSymbols("test1",src="csv")
Error in charToDate(x) :
 character string is not in a standard unambiguous format

The sample test1.csv  file contents:

Symbol, Date, Open, High, Low, Close, Volume

Before, I tried with a Date field without Date separators:

Symbol, Date, Open, High, Low, Close, Volume

But I ended up with a same Error message.

My question is where am I making the mistake? It seems that Date field is
not properly handled. How can one properly feed into quantmod OHLC csv

I am using Windows edition of R v. 2.13.0

Best wishes to all,
Sven Strek

More information about the R-help mailing list