You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
growth() returns NA for all values because growth <- cumprod(1 + ROC(price, ...) * signals) and ROC() returns an NA for the first value in a series. cumprod cannot handle the NA and returns NAs for everything.
Example:
IBM <- getYahooData('IBM')$Open
growth(IBM, rep(1, nrow(IBM)))
The text was updated successfully, but these errors were encountered:
growth() returns NA for all values because growth <- cumprod(1 + ROC(price, ...) * signals) and ROC() returns an NA for the first value in a series. cumprod cannot handle the NA and returns NAs for everything.
Example:
IBM <- getYahooData('IBM')$Open
growth(IBM, rep(1, nrow(IBM)))
The text was updated successfully, but these errors were encountered: