Skip to content
Prev 1222 / 15274 Next

get.hist.quote

Here is a kludge that will allow it to work until its fixed:


get.hist.quote <- function(...) {
	as.Date <- function(x, fmt, ...) {
		if (!missing(fmt)) fmt <- "%Y-%m-%d"
		base::as.Date(x, fmt, ...)
	}
	get.hist.quote <- tseries::get.hist.quote
	environment(get.hist.quote) <- environment()
	get.hist.quote(...)
}

# test
ibm <- get.hist.quote("ibm")
On 2/9/07, Josh Ulrich <joshulrich21 at hotmail.com> wrote: