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
I don't know if this is the right place to raise this, but I was trying to use tq_mutate for a uni assignment, and I found that it has an issue with the stock I was looking at.
rio_stock_prices <- tq_get("RIO.AX", get = "stock.prices", from = "2004-12-25") rio_stock_prices %>% tq_mutate(select = open, mutate_fun = periodReturn, period = "daily")
This returns a result successfully. However, go from one day earlier, and the second command fails: rio_stock_prices <- tq_get("RIO.AX", get = "stock.prices", from = "2004-12-24") rio_stock_prices %>% tq_mutate(select = open, mutate_fun = periodReturn, period = "daily")
Error in merge_two_tibbles(tib1 = data, tib2 = ret, mutate_fun) :
Could not join. Incompatible structures.
In addition: Warning messages:
1: In to_period(xx, period = on.opts[[period]], ...) :
missing values removed from data
2: type_convert() only converts columns of type 'character'.
df has no columns of type 'character'
The text was updated successfully, but these errors were encountered:
Hello,
I don't know if this is the right place to raise this, but I was trying to use tq_mutate for a uni assignment, and I found that it has an issue with the stock I was looking at.
rio_stock_prices <- tq_get("RIO.AX", get = "stock.prices", from = "2004-12-25") rio_stock_prices %>% tq_mutate(select = open, mutate_fun = periodReturn, period = "daily")
This returns a result successfully. However, go from one day earlier, and the second command fails:
rio_stock_prices <- tq_get("RIO.AX", get = "stock.prices", from = "2004-12-24") rio_stock_prices %>% tq_mutate(select = open, mutate_fun = periodReturn, period = "daily")
df
has no columns of type 'character'The text was updated successfully, but these errors were encountered: