Skip to content

Commit

Permalink
Fix examples: coredata vs. as.vector.
Browse files Browse the repository at this point in the history
  • Loading branch information
albertosantini committed Feb 10, 2013
1 parent d592364 commit 165672b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/ex2.R
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ hackZeroes <- function (x) {
}

getReturns <- function (symbol) {
assetPrice <- coredata(get.hist.quote(symbol,
assetPrice <- as.vector(get.hist.quote(symbol,
start="2009-8-6", end="2011-8-6",
compression="w", quote="Close", quiet=TRUE))
assetPrice <- hackZeroes(assetPrice)
Expand Down
2 changes: 1 addition & 1 deletion examples/ex3.R
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ hackZeroes <- function (x) {
}

getLogReturns <- function (symbol, start, end) {
assetPrice <- coredata(get.hist.quote(symbol,
assetPrice <- as.vector(get.hist.quote(symbol,
start=start, end=end,
compression="w", quote="Close", quiet=TRUE))
assetPrice <- hackZeroes(assetPrice)
Expand Down

0 comments on commit 165672b

Please sign in to comment.