tidyquant

R How to Pass a function as a String Inside another Function

落花浮王杯 提交于 2021-01-28 02:57:46
问题 Any assistance on this little conundrum would be mightily appreciated thanks. I am trying to pass an argument to the tq_transmute function from the tidyquant package; the value for the argument is a function, however I would like to pass it as a string (out with the scope of the example below I’ll be passing it via a Shiny selectInput ). I have tried every way I can think of to turn the string 'apply.quarterly' into the object apply.quarterly accepted by the mutate_fun argument. The commented

R: how to access a tibble in a tibble?

北慕城南 提交于 2019-12-02 13:28:43
问题 I am reading Hadley's: http://r4ds.had.co.nz/tibbles.html However, I am still having difficulty referencing a tibble in a tibble. > library(tidyquant) > f <- tq_get("F", get="key.ratios") > f # A tibble: 7 x 2 section data <chr> <list> 1 Financials <tibble [150 x 5]> 2 Profitability <tibble [170 x 5]> 3 Growth <tibble [160 x 5]> 4 Cash Flow <tibble [50 x 5]> 5 Financial Health <tibble [240 x 5]> 6 Efficiency Ratios <tibble [80 x 5]> 7 Valuation Ratios <tibble [40 x 5]> > f["Financials"] Error

getFinancials (quantmod) and tq_get (tidy quant) not working?

六月ゝ 毕业季﹏ 提交于 2019-12-02 05:48:45
问题 I'm getting the same error in both quantmod and tinyquant for financials data. Can anyone see if this is reproducable? Is this a google finance server issue? None of the below functions have been working for me.I'm not sure if it's me or the server. tq_get("AAPL", get= "financials") [1] NA Warning message: x = 'AAPL', get = 'financials': Error in thead[x]:thead[x + 1]: NA/NaN argument and: getFin("AAPL") Error in thead[x]:thead[x + 1] : NA/NaN argument Can somebody help? 回答1: Yes I get the

getFinancials (quantmod) and tq_get (tidy quant) not working?

若如初见. 提交于 2019-12-01 23:39:46
I'm getting the same error in both quantmod and tinyquant for financials data. Can anyone see if this is reproducable? Is this a google finance server issue? None of the below functions have been working for me.I'm not sure if it's me or the server. tq_get("AAPL", get= "financials") [1] NA Warning message: x = 'AAPL', get = 'financials': Error in thead[x]:thead[x + 1]: NA/NaN argument and: getFin("AAPL") Error in thead[x]:thead[x + 1] : NA/NaN argument Can somebody help? Yes I get the same issue for the past couple of days as well. I think it may have to do with a change on the part of Google