Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot tq_mutate with TTR function for cryptocurrency but can with stocks #197

Open
noahmthomas-nmt opened this issue Mar 25, 2021 · 0 comments

Comments

@noahmthomas-nmt
Copy link

I get an error when running:

rbind(tq_get("BTC-USD"),
tq_get("ETH-USD")) %>%
group_by(symbol) %>%
tq_mutate(select = close, mutate_fun = RSI)

Error: Problem with mutate() input nested.col.
x Series contains non-leading NAs
i Input nested.col is purrr::map(...).
i The error occurred in group 1: symbol = "BTC-USD".
Run rlang::last_error() to see where the error occurred.

But not when running identical code with stock tickers instead:

rbind(tq_get("MSFT"),
tq_get("AAPL")) %>%
group_by(symbol) %>%
tq_mutate(select = close, mutate_fun = RSI)

Very confused by this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant