r - ROC function in package TTR throws an error: unused argument (na.pad=na.pad) -


The code below has worked so far lately. Library ("quantum") library ("PerformanceAnalytics") library ("ggplot2") library library ("fPortfolio") library ("fAssets") library ("reshape2") library ("corrplot") ") Library (" gridExtra ") Library (" dplyr ") Data_SP & lt; - new.env () ### Download Yahoo Finance SP_tickers & download data from LT; -c ("Spy", "AAGPX", "AUIAX", "BHBFX", "CABDX", "CGRWX", "EHSTX", "HDGYX", "KDCAX", "LEIFX", "NBPBX", "OLVAX" "PGRWX") start.time & lt; -proc.time () getSymbols (SP_tickers, = "1998/12/29", env = from Data_SP) & lt; - eapply (Data_SP, function (s) ROC (ad (s), type = "discrete") proc.time () - starters.

The system comes back with the following error:

  Error in interval (X, N, not Pd = NPID): Any suggestions unused how the above Do the job again?  

(All packages have been updated because this error is appearing) below the traceback:

  4 lg (x, n , No pd = napad) 3 roc (ad (s), type = "discrete") 2 fun (list (structure (c (20.7, 20.57, 20.49, 20.52, 20.76, 21.2, 21.22, 21.42, 21.21, 20.84, 20.73 20.27, 20.74, 20.83, 20.84, 20.57, 20.35 (Data_SP, function) ROC (ad (s), type = "discrete")  

Find out which package intervals W Which package do you load from and which order?

Apparently dplyr :: lag () xts :: lag ()

"But if we now attach to the dplyr library then this does not extend the generic function. Breaks ".


Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -