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
Error returns: Getting holdings for SP500
Warning: Problem with mutate() column data...
i data.. = purrr::map(...).
i type_convert() only converts columns of type 'character'.
df has no columns of type 'character'
Same code in r file runs fine (I wanted to use markdown)...
This will not run in .rmd
Error returns: Getting holdings for SP500
Warning: Problem with
mutate()
columndata..
.i
data.. = purrr::map(...)
.i
type_convert()
only converts columns of type 'character'.df
has no columns of type 'character'Same code in r file runs fine (I wanted to use markdown)...
sp_500 <- tq_index("SP500") %>%
tq_get(get = "stock.prices")
sp_500 %>%
group_by(symbol) %>%
tq_transmute(adjusted,mutate_fun = monthlyReturn)
Return:
AAPL
Apple Inc.
03783310
2046251
0.05996623
Information Technology
166073040
USD
2011-01-03
11.63000
11.79500
11.60143
11.77036
445138400
10.106221
2
The text was updated successfully, but these errors were encountered: