forked from joshuaulrich/quantmod
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
I did some changes to the above. There seems to be a trouble with the NewToOld function. In addition, following issue joshuaulrich#224, I editted the code to have the complete list of the original variables. For instance, the following code stacks all contracts in a single data.frame ds <- getOptionChain.yahoo("SPY",NULL) ds <- lapply(ds, function(ds_i) lapply(1:length(ds_i), function(i) data.frame(Type = names(ds_i)[i], ds_i[[i]])) ) ds <- lapply(ds, function(ds_i) do.call(plyr::rbind.fill,ds_i) ) ds <- do.call(plyr::rbind.fill,ds)
- Loading branch information
Showing
1 changed file
with
36 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters