[R] quantmod: Error in charToDate(x)

From: Swen Strek <sven.strek_at_gmail.com>
Date: Wed, 27 Apr 2011 13:24:58 +0200

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

> 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 mistake? It seems that Date field is not properly handled. How can one properly feed into quantmod OHLC csv file?

I am using Windows edition of R v. 2.13.0

Best wishes to all,
Sven Strek

R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Wed 27 Apr 2011 - 12:50:54 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 28 Apr 2011 - 08:20:37 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive